From 2c100e84a36c8ac5fac0684b201ce2050ba1aab0 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 31 Mar 2009 06:15:13 +0000 Subject: - Fix a bug in ``repoze.bfg.wsgi.HTTPException``: the content length was returned as an int rather than as a string. --- repoze/bfg/wsgi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'repoze/bfg/wsgi.py') diff --git a/repoze/bfg/wsgi.py b/repoze/bfg/wsgi.py index 1a2c0460b..667de4412 100644 --- a/repoze/bfg/wsgi.py +++ b/repoze/bfg/wsgi.py @@ -44,7 +44,8 @@ class HTTPException(object): %s

%s

%s """ % (self.status, self.status, msg) - headers = [('Content-Length', len(html)), ('Content-Type', 'text/html')] + headers = [('Content-Length', str(len(html))), + ('Content-Type', 'text/html')] start_response(self.status, headers) return [html] -- cgit v1.2.3