From 1cdccf901bd6449be51896e64f73acf6375d9f90 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Wed, 21 Aug 2024 13:16:55 -0400 Subject: [PATCH] LibWeb: Transform errant `return` to a `break` in form submission There are more steps to be run after extracting the form body and type. --- Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp index 9547fa93a3d..1c06aad97c4 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp @@ -775,7 +775,7 @@ ErrorOr HTMLFormElement::submit_as_entity_body(URL::URL parsed_action, Vec // 2. Let mimeType be the isomorphic encoding of the concatenation of "multipart/form-data; boundary=" and the multipart/form-data // boundary string generated by the multipart/form-data encoding algorithm. mime_type = POSTResource::RequestContentType::MultipartFormData; - return {}; + break; } case EncodingTypeAttributeState::PlainText: { // -> text/plain