Explorar o código

apache has explosive dihrrhea when you have trailing newline in header

George S. Baugh %!s(int64=5) %!d(string=hai) anos
pai
achega
e53ba9ecff
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      www/server.psgi

+ 2 - 2
www/server.psgi

@@ -168,8 +168,8 @@ sub _serve ($path, $streaming=0, $last_fetch=0) {
     $code=200;
 
     #XXX doing metadata=preload on videos doesn't work right?
-    #push(@headers, "Content-Length: $sz\n");
-    push(@headers, "Last-Modified: $now_string\n");
+    #push(@headers, "Content-Length: $sz");
+    push(@headers, "Last-Modified: $now_string");
 
     my $h = join("\n",@headers);
     if (open(my $fh, '<', $path)) {