Commit ff4869b
committed
Decode non-ASCII header values with iso-8859-1.
Per RFC 9110, section 5.5:
> Historically, HTTP allowed field content with text
> in the ISO-8859-1 charset
This is as reversible and less surprising than surrogate escaping
(which was never documented in websockets and is quite uncommon).1 parent 399bb08 commit ff4869b
2 files changed
Lines changed: 26 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
| |||
272 | 275 | | |
273 | 276 | | |
274 | 277 | | |
275 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
276 | 282 | | |
277 | 283 | | |
278 | 284 | | |
| |||
368 | 374 | | |
369 | 375 | | |
370 | 376 | | |
371 | | - | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
372 | 381 | | |
373 | 382 | | |
374 | 383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
401 | 409 | | |
402 | 410 | | |
403 | 411 | | |
404 | 412 | | |
405 | | - | |
| 413 | + | |
406 | 414 | | |
407 | 415 | | |
408 | 416 | | |
409 | 417 | | |
410 | | - | |
| 418 | + | |
411 | 419 | | |
412 | 420 | | |
413 | 421 | | |
414 | 422 | | |
415 | | - | |
| 423 | + | |
416 | 424 | | |
417 | 425 | | |
418 | 426 | | |
419 | 427 | | |
420 | 428 | | |
421 | | - | |
| 429 | + | |
422 | 430 | | |
423 | 431 | | |
424 | 432 | | |
425 | 433 | | |
426 | | - | |
| 434 | + | |
0 commit comments