[issue27414] http.server.BaseHTTPRequestHandler inconsistence with Content-Length value

2016-06-29 Thread Mathieu Xhonneux

New submission from Mathieu Xhonneux:

With Python 3.5, when I subclass SimpleHTTPRequestHandler, which itself 
subclasses BaseHTTPRequestHandler, and I try to access a non-existing file, the 
server responds with a 404 code, but send_error (see Lib/http/server.py, line 
473) adds the Content-Length header with an int value, whereas all others 
functions convert this value to str (see lines 699, 761).

For consistency, all header values should be str.

--
components: Library (Lib)
messages: 269488
nosy: m.xhonneux
priority: normal
severity: normal
status: open
title: http.server.BaseHTTPRequestHandler inconsistence with Content-Length 
value
type: enhancement
versions: Python 3.5

___
Python tracker 
<http://bugs.python.org/issue27414>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27414] http.server.BaseHTTPRequestHandler inconsistence with Content-Length value

2016-06-29 Thread Mathieu Xhonneux

Mathieu Xhonneux added the comment:

It's line 469 in the latest Lib/http/server.py (and not 473).

--

___
Python tracker 
<http://bugs.python.org/issue27414>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com