diff options
-rw-r--r-- | Userland/Libraries/LibWeb/Fetch/Request.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Fetch/Request.cpp b/Userland/Libraries/LibWeb/Fetch/Request.cpp index 8c15539835..ea33c6bfd2 100644 --- a/Userland/Libraries/LibWeb/Fetch/Request.cpp +++ b/Userland/Libraries/LibWeb/Fetch/Request.cpp @@ -174,12 +174,12 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Request>> Request::construct_impl(JS::Realm // method // request’s method. - request->set_method(TRY_OR_RETURN_OOM(realm, ByteBuffer::copy(request->method()))); + request->set_method(TRY_OR_RETURN_OOM(realm, ByteBuffer::copy(input_request->method()))); // header list // A copy of request’s header list. auto header_list_copy = Infrastructure::HeaderList::create(vm); - for (auto& header : *request->header_list()) + for (auto& header : *input_request->header_list()) TRY_OR_RETURN_OOM(realm, header_list_copy->append(header)); request->set_header_list(header_list_copy); |