From 6e53dd87673fa745fd8af4122c8099797bf11553 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 13 Nov 2022 14:11:17 +0000 Subject: [PATCH] LibWeb: Rename XHR::{m_url => m_request_url} --- Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp | 4 ++-- Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp index 17bdfbf95c..5209390b6d 100644 --- a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp +++ b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp @@ -393,7 +393,7 @@ WebIDL::ExceptionOr XMLHttpRequest::open(String const& method_string, Stri // Set this’s request method to method. m_request_method = move(method); // Set this’s request URL to parsedURL. - m_url = parsed_url; + m_request_url = parsed_url; // Set this’s synchronous flag if async is false; otherwise unset this’s synchronous flag. m_synchronous = !async; // Empty this’s author request headers. @@ -441,7 +441,7 @@ WebIDL::ExceptionOr XMLHttpRequest::send(Optionaldowncast())); } - AK::URL request_url = m_window->associated_document().parse_url(m_url.to_string()); + AK::URL request_url = m_window->associated_document().parse_url(m_request_url.to_string()); dbgln("XHR send from {} to {}", m_window->associated_document().url(), request_url); // TODO: Add support for preflight requests to support CORS requests diff --git a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h index 9b6d2bb7ae..0414386f84 100644 --- a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h +++ b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h @@ -113,7 +113,7 @@ private: // https://xhr.spec.whatwg.org/#request-url // request URL // A URL. - AK::URL m_url; + AK::URL m_request_url; // https://xhr.spec.whatwg.org/#author-request-headers // author request headers