[issue46285] protocol_version in http.server.test can be ignored

2022-01-26 Thread Hugo Almeida
Hugo Almeida added the comment: Hi Éric, thank you so much. I know only a little usage of closure and functools.partial but not the historical/relative knowledge of their design/feature, I mean this issue have 2 visual, the partical object not working as it expected or we are not calling

[issue46285] http/server.py wont respect its protocol_version

2022-01-09 Thread Hugo Almeida
Hugo Almeida added the comment: Hi, buddy, there is no problem if invoke the http.server.test function as its designed, I mean the function iteself is okay, thus http/server.py invoked it via the functools.partial wrapper (handler_class) only will case this issue, which technically ignored

[issue46285] http/server.py wont respect its protocol_version

2022-01-08 Thread Hugo Almeida
Hugo Almeida added the comment: The short story is, everything is okay, its my bad to taken the test function out of context, sorry about that of issue report. # just for details review (related file attached): # # check line 1277 to line 1278 (main branch of Python currently): # https

[issue46285] http/server.py wont respect its protocol_version

2022-01-06 Thread Hugo Almeida
Hugo Almeida added the comment: update == It seems I've found the problem, http/server.py#L1277-L1288: ``` handler_class = partial(SimpleHTTPRequestHandler, directory=args.directory) ``` Because of `partial` (provide by the functools module

[issue46285] http/server.py wont respect its protocol_version

2022-01-06 Thread Hugo Almeida
New submission from Hugo Almeida : Hi, Sorry for my poor English, this is not a spam issue. How to reproduce File about `http/server.py`, line 1235 at main branch. 1st, change `protocol_version`, e.g. from "HTTP/1.0" to "HTTP/1.1": --- proto