[Varnish] #1582: Varnish internal header field comparisons must be case insensitive

Varnish varnish-bugs at varnish-cache.org
Wed Aug 27 14:21:15 CEST 2014


#1582: Varnish internal header field comparisons must be case insensitive
--------------------+----------------------
 Reporter:  slink   |       Owner:  slink
     Type:  defect  |      Status:  closed
 Priority:  normal  |   Milestone:
Component:  build   |     Version:  unknown
 Severity:  normal  |  Resolution:  fixed
 Keywords:          |
--------------------+----------------------
Changes (by Nils Goroll <nils.goroll@…>):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [b109ee1c099ebae6a9f9423b1a1f81c634c8f895]:
 {{{
 #!CommitTicketReference repository=""
 revision="b109ee1c099ebae6a9f9423b1a1f81c634c8f895"
 Fix sensitivity for header token matching. Rename GetHdrData ->
 GetHdrToken

 Section 4.2 (Messages Headers) of RFC2616 defines field (header) name as
 case
 insensitive, but the field (header) value/content may be case-sensitive.

 http_GetHdrToken looks up a token in a header value and the rfc does not
 say
 explicitly if tokens are to be compared with or without respect to case.

 But all examples and specific statements regarding tokens follow the rule
 that unquoted tokens are to be matched case-insensitively and quoted
 tokens
 case-sensitively.

 Fixes #1582
 }}}

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1582#comment:2>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list