[New-bugs-announce] [issue18574] BaseHTTPRequestHandler.handle_expect_100() sends invalid response

Nikolaus Rath report at bugs.python.org
Sun Jul 28 02:36:27 CEST 2013


New submission from Nikolaus Rath:

The handle_expect_100() implementation in BaseHTTPRequestHandler currently calls send_response_only(100) followed by flush_headers(). However, even a 1xx response is always followed by a (potentially empty) set of response headers (cf. http://tools.ietf.org/html/rfc2616#section-9.9). Therefore, clients will block waiting for an additional '\r\n' before sending the buffer.

The attached patch fixes the problem.

----------
components: Library (Lib)
files: handle_expect.diff
keywords: patch
messages: 193800
nosy: Nikratio
priority: normal
severity: normal
status: open
title: BaseHTTPRequestHandler.handle_expect_100() sends invalid response
versions: Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file31057/handle_expect.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18574>
_______________________________________


More information about the New-bugs-announce mailing list