@matheusbsbs / matheus-bagliano / commits / 8f1deb5f53
Fork 0

set logo output to raw mode

Kay Sievers committed Nov 23, 2005 at 16:02 UTC 8f1deb5f53f606ac60563175c988b676627e31ce
1 file changed +1
gitweb.cgi
+1
@@ -719,6 +719,7 @@ sub date_str {
719
720 # git-logo (cached in browser for one day)
721 sub git_logo {
722 + binmode STDOUT, ':raw';
723 print $cgi->header(-type => 'image/png', -expires => '+1d');
724 # cat git-logo.png | hexdump -e '16/1 " %02x" "\n"' | sed 's/ /\\x/g'
725 print "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52" .