Преглед на файлове

apache has explosive dihrrhea when you have trailing newline in header

George S. Baugh преди 5 години
родител
ревизия
e53ba9ecff
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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)) {