Bug in inets (httpd)

Thomas Lange <>
Wed Jan 14 17:03:28 CET 2004


The "Last-modified" field in the http response is not
converted to GMT. Instead, the local time is used, but
tagged as GMT.

The "Date:" field is correct, but file appears to be modified in the future.

This causes Mozilla to do funny stuff.
In my test, Mozilla sets expire date to year 2017(!).

Tested with debian/linux + R9C-0, Mozilla 1.5

---------------
Patch attached for R9C-0

* Assumes that all calls to rfc1123_date/1 are with local time.
* Assumes that all platforms return fileinfo in local time.

Works on linux/debian.

/Thomas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff_httpd_util
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20040114/1df378e8/attachment.ksh>


More information about the erlang-patches mailing list