◐ Shell
clean mode source ↗

bpo-36274: Encode request lines as Latin-1 by tipabu · Pull Request #12314 · python/cpython

While this is out of spec according to RFC 7230 (which limits expected octets to some subset of ASCII), it is often useful to be able to mimic an out-of-spec client when testing a server or application.

Use Latin-1 in keeping with how we handle headers and bodies. This is the first fix proposed in the bug report; the second will also be submitted so reviewers can decide between fixes.

https://bugs.python.org/issue36274

https://bugs.python.org/issue36274