Erlang/OTP Forums

Author Message

<  Erlang patches mailing list  ~  Bug in inets (httpd)

thomas at corelatus.se
Posted: Wed Jan 14, 2004 4:03 pm Reply with quote
Guest
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


Post generated using Mail2Forum (http://m2f.sourceforge.net)

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum