mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 16:10:20 +00:00
LibWeb: Fix comparing current position to quote in Mime Type quote parse
Had a look over this with a fresh head and noticed I was comparing the current lexer position to the quote character, oops!
This commit is contained in:
parent
497dd5b354
commit
d1c4a94659
Notes:
sideshowbarker
2024-07-17 18:57:45 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/d1c4a94659 Pull-request: https://github.com/SerenityOS/serenity/pull/12466
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ Optional<MimeType> MimeType::from_string(StringView string)
|
|||
String parameter_value;
|
||||
|
||||
// 8. If the code point at position within input is U+0022 ("), then:
|
||||
if (lexer.tell() == '"') {
|
||||
if (lexer.peek() == '"') {
|
||||
// 1. Set parameterValue to the result of collecting an HTTP quoted string from input, given position and the extract-value flag.
|
||||
parameter_value = collect_an_http_quoted_string(lexer, Fetch::HttpQuotedStringExtractValue::Yes);
|
||||
|
||||
|
|
Loading…
Reference in a new issue