aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2023-03-27 18:48:12 +0100
committerTomasz Kramkowski <tomasz@kramkow.ski>2023-03-27 19:01:34 +0100
commit43384a64917cfe25af62376da19e311e628e0d4c (patch)
tree7d4e7cf0a745df13e502014b03b28b05a1101742
parent4ad81ff7b008cb5defbf2a4d2d6012b8a597773c (diff)
downloadpaste-43384a64917cfe25af62376da19e311e628e0d4c.tar.gz
paste-43384a64917cfe25af62376da19e311e628e0d4c.tar.xz
paste-43384a64917cfe25af62376da19e311e628e0d4c.zip
Return a string content_length for HEAD
-rw-r--r--paste/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/__init__.py b/paste/__init__.py
index 1948273..edf1951 100644
--- a/paste/__init__.py
+++ b/paste/__init__.py
@@ -244,7 +244,7 @@ def application(environ: Env, start_response: StartResponse) -> Response:
"200 OK",
[
("Content-Type", content_type),
- ("Content-Length", content_length),
+ ("Content-Length", str(content_length)),
("ETag", f'"{b64encode(content_hash).decode()}"'),
],
)