From dd4e76b3f98de06e0c898cf2fe2fd455f27dff4b Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 8 Jul 2023 19:19:01 -0300 Subject: [PATCH] server: update local name --- packages/ruby/server/lib/server/etag.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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