couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: wrong case in Last-Modified
Date Wed, 24 Aug 2011 16:41:33 GMT
HTTP headers are required to be treated case-insensitively
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2).

CouchDB supports http 1.0 and 1.1 but returns a 1.0 response to a 1.0
request. Using wget on my machine gives a 1.1 response, but perhaps
your wget is older (it used to only support 1.0, iirc).

B.

On 24 August 2011 17:28, Andrey Somov <trophybase@googlemail.com> wrote:
> Hi all,
> I have noticed that the HTTP header contains lower case value for
> 'Last-Modified'
> (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.29)
>
> ~$ wget -q -O - "$@"http://localhost:5984/favicon.ico --proxy=off
> --server-response
>  HTTP/1.0 200 OK
>  Server: CouchDB/1.2.0a-1151390 (Erlang OTP/R13B03)
>  last-modified: Tue, 26 Jul 2011 04:19:47 GMT
>  Expires: Fri, 24 Aug 2012 15:02:33 GMT
>  Date: Wed, 24 Aug 2011 15:02:33 GMT
>  Content-Type: image/x-icon
>  Content-Length: 9326
>  Cache-Control: public, max-age=31536000
>
> By the way, the protocol in the reply is HTTP 1.0. Does it mean that CouchDB
> does not support HTTP 1.1 ?
>
> -
> Andrey
>

Mime
View raw message