diff options
author | Linus Groh <mail@linusgroh.de> | 2022-07-12 22:58:46 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-07-14 00:42:26 +0100 |
commit | f42f0cceaaadcf84698c1f51ceb28b5e4b0d37b1 (patch) | |
tree | 402f05560af0d19312960f13f8390fbd2e28afa1 /Userland/Libraries | |
parent | fad69fcacd2e240e52007e03788bb8baa08a31a9 (diff) | |
download | serenity-f42f0cceaaadcf84698c1f51ceb28b5e4b0d37b1.zip |
LibWeb: Make Fetch::collect_an_http_quoted_string()'s 2nd param optional
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP.h b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP.h index 0d22e2fc87..3ccec4d61e 100644 --- a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP.h +++ b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP.h @@ -25,6 +25,6 @@ enum class HttpQuotedStringExtractValue { Yes, }; -String collect_an_http_quoted_string(GenericLexer& lexer, HttpQuotedStringExtractValue extract_value); +String collect_an_http_quoted_string(GenericLexer& lexer, HttpQuotedStringExtractValue extract_value = HttpQuotedStringExtractValue::No); } diff --git a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp index 12afd9180f..7eca4a9467 100644 --- a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp +++ b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp @@ -279,7 +279,7 @@ Optional<Vector<String>> XMLHttpRequest::get_decode_and_split(String const& head // 1. If the code point at position within input is U+0022 ("), then: if (lexer.peek() == '"') { // 1. Append the result of collecting an HTTP quoted string from input, given position, to value. - auto quoted_value_part = Fetch::collect_an_http_quoted_string(lexer, Fetch::HttpQuotedStringExtractValue::No); + auto quoted_value_part = Fetch::collect_an_http_quoted_string(lexer); value.append(quoted_value_part); // 2. If position is not past the end of input, then continue. |