1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:57:35 +00:00

LibWeb: Merge latest mimesniff spec update

Merges e589fcb711,
an editorial change...that fixes a comment typo!
This commit is contained in:
Nico Weber 2022-11-11 07:09:55 -05:00 committed by Linus Groh
parent 31469ee45a
commit 0175b5c584

View file

@ -206,7 +206,7 @@ String MimeType::serialized() const
// 4. If value does not solely contain HTTP token code points or value is the empty string, then:
if (!contains_only_http_token_code_points(value) || value.is_empty()) {
// 1. Precede each occurence of U+0022 (") or U+005C (\) in value with U+005C (\).
// 1. Precede each occurrence of U+0022 (") or U+005C (\) in value with U+005C (\).
value = value.replace("\\"sv, "\\\\"sv, ReplaceMode::All);
value = value.replace("\""sv, "\\\""sv, ReplaceMode::All);