diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-23 19:40:36 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-23 19:40:36 -0800 |
commit | 3f586904632c8877fd429632487396320fd3e63e (patch) | |
tree | 9887b28be889d50b63daf88e168d895e6a1a15ae | |
parent | 8b5bed299a194ec4dfcd2afa84c5a1875994004a (diff) | |
download | rack-conditionalget.tar.gz |
conditionalget: use canonical "ETag" capitalization conditionalget
It matches the capitalization in rfc2616 and is also faster for Rack::HeaderHash users that also use the canonical capitalization.
-rw-r--r-- | lib/rack/conditionalget.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/conditionalget.rb b/lib/rack/conditionalget.rb index ceab3347..136d1879 100644 --- a/lib/rack/conditionalget.rb +++ b/lib/rack/conditionalget.rb @@ -51,7 +51,7 @@ module Rack end def etag_matches?(none_match, headers) - etag = headers['Etag'] and etag == none_match + etag = headers['ETag'] and etag == none_match end def modified_since?(modified_since, headers) |