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 <rep...@bugs.python.org> <http://bugs.python.org/issue26609> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com