I ran into the same problem and started investigating.

On Fri, 6 Jan 2017 22:44:49 +0100 Jerome <an.in...@free.fr> wrote:
> 
> [Fri Jan 06 21:34:53.830541 2017] [http:error] [pid 6785:tid 
> 140419151554304] [client ::1:45220] AH02429: Response header name 'Last 
> modified' contains invalid characters, aborting request, referer: 
> http://localhost/dwww/
> 
> This generated what looks like proper output, the header is:
>   Content-type: text/html
>   Last modified: Tue Dec 13 14:16:35 2016
>   Content-Disposition: inline; filename="index.html"
> 
> The 'Last modified' looks ok to me...

Actually the header should read "Last-Modified" (note spelling). After
patching the dwww script to emit the correct header the error no longer
occurs with Apache.

This incorrect header is output by the script /usr/sbin/dwww-convert. I made
the following change to it:

--- dwww-convert.OLD    2017-01-12 06:24:58.208140587 +0100
+++ dwww-convert        2017-01-12 06:25:13.900487551 +0100
@@ -327,7 +327,7 @@
     print "Content-type: $mime_type" . (defined $mime_charset ? "; 
charset=$mime_charset\n" : "\n");
     my @stat = stat( $filename );
     my $mtime = $stat[9];
-    print "Last modified: " . gmtime($mtime) . "\n";
+    print "Last-Modified: " . gmtime($mtime) . "\n";
     print "Content-Disposition: inline; filename=\"$base_name\"\n";
     print "\n";
 } # }}}

Although the date string is technically in an obsolete format, conforming
clients (like Apache) are required to be able to parse it. So this poses no
further problem.


Arjan

Reply via email to