diff options
author | Andreu Botella <abotella@igalia.com> | 2025-03-28 20:02:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-28 19:02:48 +0000 |
commit | 95c303345646f17c02e5ebf23375c8a8940a1956 (patch) | |
tree | 501483b7e8e4f313b2328dbf3427b4131a5b579e /third_party | |
parent | 94bcab177e011cc2e588af298e19fe87ee34f153 (diff) | |
download | servo-95c303345646f17c02e5ebf23375c8a8940a1956.tar.gz servo-95c303345646f17c02e5ebf23375c8a8940a1956.zip |
Consume BOM in the `text()` method of fetch bodies (#36192)
In the fetch spec, the `text()` method of `Body` (an interface mixin
implemented by both `Request` and `Response`) consumes the body with
the Encoding spec "UTF-8 decode" algorithm, which skips the UTF-8 BOM
if it is present at the beginning of the body. Servo's implementation
does not do that. This patch fixes this.
Signed-off-by: Andreu Botella <abotella@igalia.com>
Diffstat (limited to 'third_party')
0 files changed, 0 insertions, 0 deletions