Skip to content

Commit

Permalink
S3: support for etag with quotes in IfNoneMatch header (#5715)
Browse files Browse the repository at this point in the history
  • Loading branch information
macnev2013 committed Nov 29, 2022
1 parent 672c953 commit 3d16834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moto/s3/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,7 @@ def _key_response_get(self, bucket_name, query, key_name, headers):
if_modified_since = str_to_rfc_1123_datetime(if_modified_since)
if key.last_modified.replace(microsecond=0) <= if_modified_since:
return 304, response_headers, "Not Modified"
if if_none_match and key.etag == if_none_match:
if if_none_match and key.etag in [if_none_match, f'"{if_none_match}"']:
return 304, response_headers, "Not Modified"

if "acl" in query:
Expand Down

0 comments on commit 3d16834

Please sign in to comment.