diff --git a/packages/ruby/server/lib/server/etag.rb b/packages/ruby/server/lib/server/etag.rb index 5767fae..74becc9 100644 --- a/packages/ruby/server/lib/server/etag.rb +++ b/packages/ruby/server/lib/server/etag.rb @@ -8,9 +8,9 @@ class Server::ETag < Rack::ETag end def call(env) - headers = ETAGS[env["REQUEST_PATH"]] || {} - if headers["etag"] && headers["etag"] == env["HTTP_IF_NONE_MATCH"] - [304, headers, [""]] + h = ETAGS[env["REQUEST_PATH"]] || {} + if h["etag"] && h["etag"] == env["HTTP_IF_NONE_MATCH"] + [304, h, [""]] else status, headers, body = super(env) ETAGS[env["REQUEST_PATH"]] = headers