changeset 6656:b83b90d57846

Fix header value. needs to be string not integer.
author John Rouillard <rouilj@ieee.org>
date Mon, 02 May 2022 16:17:13 -0400
parents a193653d6fa4
children 2453d7b58a92
files roundup/cgi/client.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/cgi/client.py	Mon May 02 15:29:12 2022 -0400
+++ b/roundup/cgi/client.py	Mon May 02 16:17:13 2022 -0400
@@ -2524,7 +2524,7 @@
         # indicating an invalid range.
         if (self.env['REQUEST_METHOD'] == 'HEAD'
             or self.response_code == http_.client.REQUESTED_RANGE_NOT_SATISFIABLE):
-            self.setHeader("Content-Length", 0)
+            self.setHeader("Content-Length", "0")
             self.header()
             return
         # Use the optimized "sendfile" operation, if possible.

Roundup Issue Tracker: http://roundup-tracker.org/