Files
tauri-plugins-workspace/plugins
Christopher PruijsenandLucas Nogueira 0e17675653 fix(http): decode header values as ISO-8859-1 (#3586)
* fix(http): decode response header values as ISO-8859-1

Response header values were decoded with String::from_utf8 before being
sent over IPC. Raw UTF-8 bytes produced JS strings with code points
above 255, which new Headers() rejects as invalid ByteStrings
("Type error" on WebKit), and bytes that were not valid UTF-8 failed
the fetch outright. Decode as ISO-8859-1 instead so every byte maps to a
char 0-255, matching what browsers expose for the same response.

Fixes #2898

* fix(http): add tests for ISO-8859-1 response header decoding

Cover the #2898 Content-Disposition case and non-UTF-8 header bytes on
the same conversion fetch_send uses, so a revert to UTF-8 fails the suite.

* request headers, e2e test

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-10-13 14:43:50 -03:00
..
2026-09-26 17:21:49 -03:00
2026-10-10 12:50:18 -03:00
2026-10-10 12:50:18 -03:00
2026-10-11 22:07:25 -03:00
2026-10-10 12:50:18 -03:00
2026-10-10 12:50:18 -03:00
2026-10-10 12:50:18 -03:00
2026-09-26 17:21:49 -03:00
2026-09-26 17:21:49 -03:00
2026-10-10 12:50:18 -03:00
2026-09-26 17:21:49 -03:00