diff options
-rw-r--r-- | paste/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/__init__.py b/paste/__init__.py index 31f86bc..0800d93 100644 --- a/paste/__init__.py +++ b/paste/__init__.py @@ -157,7 +157,7 @@ def application(environ: Env, start_response: StartResponse) -> Response: [ ("Content-Type", content_type), ("Content-Length", str(len(content))), - ("ETag", b64encode(content_hash).decode()), + ("ETag", f'"{b64encode(content_hash).decode()}"'), ], ) return [content] @@ -173,7 +173,7 @@ def application(environ: Env, start_response: StartResponse) -> Response: [ ("Content-Type", content_type), ("Content-Length", content_length), - ("ETag", b64encode(content_hash).decode()), + ("ETag", f'"{b64encode(content_hash).decode()}"'), ], ) return [] |