diff options
author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2023-03-24 20:17:26 +0000 |
---|---|---|
committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2023-03-24 20:24:22 +0000 |
commit | 1f2caffb46dcbbc75323ecb97414a62fd8b505c6 (patch) | |
tree | 97e8eb70d5420fdf1588c05cf5b56e1de41bb4c4 | |
parent | b71635467d8ae82880adcde73a1bb0504dab4754 (diff) | |
download | paste-1f2caffb46dcbbc75323ecb97414a62fd8b505c6.tar.gz paste-1f2caffb46dcbbc75323ecb97414a62fd8b505c6.tar.xz paste-1f2caffb46dcbbc75323ecb97414a62fd8b505c6.zip |
Fix ETag header format
-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 [] |