Project

General

Profile

Actions

Bug #117

closed

ETag header string is not quoted

Added by Anonymous almost 19 years ago. Updated almost 17 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

Description

http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11
specifies that the entity tag should be a quoted string, optionally prefixed by a weakness indicator. Samples tags are given in
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.19

Currently, lighttpd outputs an unquoted ETag field.


$ curl -I http://lighttpd.net/download/lighttpd-1.3.13.tar.gz
HTTP/1.1 200 OK
Date: Fri, 06 May 2005 17:27:14 GMT
Last-Modified: Sun, 06 Mar 2005 12:00:21 GMT
Content-Length: 680068
ETag: 1443640654
Accept-Ranges: bytes
Content-Type: application/x-tgz
Server: lighttpd/1.3.13

-- sit

Actions #1

Updated by Anonymous almost 19 years ago

Moreover I suggest using an unsigned variable for the etag, the "-" looks odd.


HTTP/1.0 200 OK
Connection: close
Date: Wed, 18 May 2005 14:10:53 GMT
Last-Modified: Wed, 18 May 2005 14:10:07 GMT
Content-Length: 14165
ETag: -1072359074
Accept-Ranges: bytes
Content-Type: text/html
Server: lighttpd/1.3.13

-- andreas

Actions #2

Updated by jan almost 19 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

fixed in r376 and r378, verified by testcase

Actions

Also available in: Atom