Răsfoiți Sursa

apache has explosive dihrrhea when you have trailing newline in header

George S. Baugh 5 ani în urmă
părinte
comite
e53ba9ecff
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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)) {