[issue26609] Wrong request target in test_httpservers.py

Xiang Zhang report at bugs.python.org
Tue Mar 22 04:56:20 EDT 2016


New submission from Xiang Zhang:

When requesting a resource from an origin server, the request-target in request line should always starts with a back slash. But in SimpleHTTPServerTestCase in test_httpservers.py, almost all the requests are sent without the back slash though the handler handles it well. The request lines are like 'GET tmpXXXXX HTTP/1.1'. I add the back slashes.

Maybe in SimpleHTTPRequestHandler, we should reject such invalid request-targets and then return BAD_REQUEST. And then issue2254 won't happen.

----------
components: Library (Lib)
files: request_target_in_test_httpservers.patch
keywords: patch
messages: 262171
nosy: martin.panter, xiang.zhang
priority: normal
severity: normal
status: open
title: Wrong request target in test_httpservers.py
versions: Python 3.6
Added file: http://bugs.python.org/file42243/request_target_in_test_httpservers.patch

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


More information about the Python-bugs-list mailing list