Skip to content

Commit f831d85

Browse files
committed
header values should always be strings (at least "flup" cares)
1 parent 1a89163 commit f831d85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/cgi/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2213,7 +2213,7 @@ def write_html(self, content):
22132213
self.additional_headers['Content-Type'] = \
22142214
'text/html; charset=%s' % self.charset
22152215
if 'Content-Length' not in self.additional_headers:
2216-
self.additional_headers['Content-Length'] = len(content)
2216+
self.additional_headers['Content-Length'] = str(len(content))
22172217
self.header()
22182218

22192219
if self.env['REQUEST_METHOD'] == 'HEAD':

0 commit comments

Comments
 (0)