File: bin_resp_start_0.pl

package info (click to toggle)
libapache2-mod-perl2 2.0.4-7%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 9,896 kB
  • ctags: 3,820
  • sloc: perl: 56,663; ansic: 14,001; makefile: 93; sh: 38
file content (13 lines) | stat: -rwxr-xr-x 366 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl -w

use strict;
use warnings FATAL => 'all';

# favicon.ico and other .ico image/x-icon images start with this sequence
my $response = "\000\000\001\000";

# test here that the cgi header parser doesn't get confused and decide
# that there is no response body if it starts with \000 sequence

print "Content-type: image/x-icon\n\n";
print $response;