]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-130631: Make join_header_words() more similar to the original Perl version (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 9 Apr 2025 08:08:04 +0000 (11:08 +0300)
committerGitHub <noreply@github.com>
Wed, 9 Apr 2025 08:08:04 +0000 (11:08 +0300)
commit7ebbd271444d89218870169624921b795a717470
tree6a50692e0f19fdf1cea92c2e3531c2bbbdba26b2
parent16dcb576f7623e19f22be631bbc0e565335da969
gh-130631: Make join_header_words() more similar to the original Perl version (GH-130632)

* Always quote strings with non-ASCII characters.
* Allow some non-separator and non-control characters (like "." or "-")
  be unquoted.
* Always quote strings that end with "\n".
* Use the fullmatch() method for clarity and optimization.
Lib/http/cookiejar.py
Lib/test/test_http_cookiejar.py
Misc/NEWS.d/next/Library/2025-02-27-14-25-01.gh-issue-130631.dmZcZM.rst [new file with mode: 0644]