Fix a regression with ETag and If-None-Match
This commit is contained in:
@@ -93,7 +93,7 @@ module RemoteStorage
|
||||
end
|
||||
|
||||
none_match = (server.env["HTTP_IF_NONE_MATCH"] || "").split(",").map(&:strip)
|
||||
server.halt 304 if none_match.include? etag
|
||||
server.halt 304 if none_match.include? %Q("#{etag}")
|
||||
end
|
||||
|
||||
server.headers["ETag"] = %Q("#{etag}")
|
||||
|
||||
Reference in New Issue
Block a user