summary refs log tree commit
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-02-23 19:40:36 -0800
committerEric Wong <normalperson@yhbt.net>2011-02-23 19:40:36 -0800
commit3f586904632c8877fd429632487396320fd3e63e (patch)
tree9887b28be889d50b63daf88e168d895e6a1a15ae
parent8b5bed299a194ec4dfcd2afa84c5a1875994004a (diff)
downloadrack-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.rb2
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)