From 43384a64917cfe25af62376da19e311e628e0d4c Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Mon, 27 Mar 2023 18:48:12 +0100 Subject: Return a string content_length for HEAD --- paste/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()}"'), ], ) -- cgit v1.2.3-54-g00ecf