mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Mark body argument of extract_body() as const reference
This commit is contained in:
parent
1b9f5fa28a
commit
48b59aaeb1
Notes:
sideshowbarker
2024-07-17 08:49:57 +09:00
Author: https://github.com/kennethmyhra
Commit: 48b59aaeb1
Pull-request: https://github.com/SerenityOS/serenity/pull/14595
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ Optional<MimeSniff::MimeType> XMLHttpRequest::extract_mime_type(Fetch::HeaderLis
|
|||
}
|
||||
|
||||
// https://fetch.spec.whatwg.org/#concept-bodyinit-extract
|
||||
static XMLHttpRequest::BodyWithType extract_body(XMLHttpRequestBodyInit& body)
|
||||
static XMLHttpRequest::BodyWithType extract_body(XMLHttpRequestBodyInit const& body)
|
||||
{
|
||||
if (body.has<NonnullRefPtr<URL::URLSearchParams>>()) {
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue