Xiang Zhang added the comment: Get the slash prefixed path in Setup() is a good idea. I change the patch. I retain self.tempdir_name so we can use it in a test for no leading slash. The case creating index.html is OK with self.tempdir_name since we have changed our working directory to basetempdir.
I didn't think about compatibility but I know it's important. So rejecting the invalid request-targets is not a good idea to me now. ---------- Added file: http://bugs.python.org/file42369/request_target_in_test_httpservers_v2.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