Commit 95596d5
GH-23638 introduced a new test for Accept: headers in CGI HTTP servers. This test serializes all of os.environ on the server side. For non-UTF8 locales this can fail for some Unicode characters found in environment variables. This change fixes the HTTP_ACCEPT test.
(cherry picked from commit 82b218f)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
1 parent 421b543 commit 95596d5
1 file changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
594 | | - | |
| 594 | + | |
| 595 | + | |
595 | 596 | | |
596 | | - | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
597 | 606 | | |
598 | 607 | | |
599 | 608 | | |
| |||
848 | 857 | | |
849 | 858 | | |
850 | 859 | | |
851 | | - | |
852 | | - | |
| 860 | + | |
| 861 | + | |
853 | 862 | | |
854 | 863 | | |
855 | 864 | | |
| |||
0 commit comments