From 29a8414a05abfa67ab1ad68ae8645dd9d17069f0 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 13 Nov 2022 14:10:31 +0000 Subject: [PATCH] LibWeb: Rename XHR::{m_method => m_request_method} --- Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp | 6 +++--- Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp index 24e6595f35..17bdfbf95c 100644 --- a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp +++ b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp @@ -391,7 +391,7 @@ WebIDL::ExceptionOr XMLHttpRequest::open(String const& method_string, Stri // Unset this’s upload listener flag. m_upload_listener = false; // Set this’s request method to method. - m_method = move(method); + m_request_method = move(method); // Set this’s request URL to parsedURL. m_url = parsed_url; // Set this’s synchronous flag if async is false; otherwise unset this’s synchronous flag. @@ -429,7 +429,7 @@ WebIDL::ExceptionOr XMLHttpRequest::send(Optional body_with_type {}; @@ -460,7 +460,7 @@ WebIDL::ExceptionOr XMLHttpRequest::send(Optionalpage()); - request.set_method(m_method); + request.set_method(m_request_method); if (serialized_document.has_value()) { request.set_body(serialized_document->to_byte_buffer()); } else if (body_with_type.has_value()) { diff --git a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h index 07518a4026..9b6d2bb7ae 100644 --- a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h +++ b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h @@ -108,7 +108,7 @@ private: // https://xhr.spec.whatwg.org/#request-method // request method // A method. - String m_method; + String m_request_method; // https://xhr.spec.whatwg.org/#request-url // request URL