]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-130631: Make join_header_words() more similar to the original Perl version...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 9 Apr 2025 09:18:31 +0000 (12:18 +0300)
committerGitHub <noreply@github.com>
Wed, 9 Apr 2025 09:18:31 +0000 (09:18 +0000)
commit8e97bd7ef41b00b6ef229b4db9deeb848b6f4388
tree35ebe0dad886dc453ac77ed7742e4d1e43ec922b
parent099b3013fa2481a9cad0e26cd01ea74ab633d122
[3.13] gh-130631: Make join_header_words() more similar to the original Perl version (GH-130632) (GH-132303)

* 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.
(cherry picked from commit 7ebbd271444d89218870169624921b795a717470)
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]