Commit 193c27b
Handle HTTP chunking across multi-byte boundaries
When a response contains multi-byte UTF-8 characters that cross chunk
boundaries, appending the two halves to the intermediate string results
in two Unicode Replacement Characters being inserted instead of the two
halves being joined.
Set the response encoding to UTF-8 to ensure it buffers partial
characters between chunks.
Resolves #22
Co-authored-by: zyc9012 <zyc9012@gmail.com>1 parent 1cdcf24 commit 193c27b
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
0 commit comments