diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/http/server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/server.py b/Lib/http/server.py index ea0e295..ca2dd50 100644 --- a/Lib/http/server.py +++ b/Lib/http/server.py @@ -474,7 +474,7 @@ class BaseHTTPRequestHandler(socketserver.StreamRequestHandler): }) body = content.encode('UTF-8', 'replace') self.send_header("Content-Type", self.error_content_type) - self.send_header('Content-Length', int(len(body))) + self.send_header('Content-Length', str(len(body))) self.end_headers() if self.command != 'HEAD' and body: |