LibWeb: Mark body argument of extract_body() as const reference

This commit is contained in:
Kenneth Myhra 2022-07-15 23:01:03 +02:00 committed by Linus Groh
parent 1b9f5fa28a
commit 48b59aaeb1

View file

@ -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 {