diff options
author | Linus Groh <mail@linusgroh.de> | 2022-11-13 14:10:31 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-11-14 10:00:11 +0000 |
commit | 29a8414a05abfa67ab1ad68ae8645dd9d17069f0 (patch) | |
tree | 16815fa24661b488cb6befc14bef4ca2740ab96f /Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp | |
parent | 338ada66fac356549f9ac56719f26c8eb7824df6 (diff) | |
download | serenity-29a8414a05abfa67ab1ad68ae8645dd9d17069f0.zip |
LibWeb: Rename XHR::{m_method => m_request_method}
Diffstat (limited to 'Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp | 6 |
1 files changed, 3 insertions, 3 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<void> 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<void> XMLHttpRequest::send(Optional<DocumentOrXMLHttpRequest return WebIDL::InvalidStateError::create(realm, "XHR send() flag is already set"); // If this’s request method is `GET` or `HEAD`, then set body to null. - if (m_method.is_one_of("GET"sv, "HEAD"sv)) + if (m_request_method.is_one_of("GET"sv, "HEAD"sv)) body = {}; Optional<Fetch::Infrastructure::BodyWithType> body_with_type {}; @@ -460,7 +460,7 @@ WebIDL::ExceptionOr<void> XMLHttpRequest::send(Optional<DocumentOrXMLHttpRequest } auto request = LoadRequest::create_for_url_on_page(request_url, m_window->page()); - 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()) { |