1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

LibWeb: Rename XHR::{m_url => m_request_url}

This commit is contained in:
Linus Groh 2022-11-13 14:11:17 +00:00
parent 29a8414a05
commit 6e53dd8767
2 changed files with 3 additions and 3 deletions

View file

@ -393,7 +393,7 @@ WebIDL::ExceptionOr<void> XMLHttpRequest::open(String const& method_string, Stri
// Set thiss request method to method.
m_request_method = move(method);
// Set thiss request URL to parsedURL.
m_url = parsed_url;
m_request_url = parsed_url;
// Set thiss synchronous flag if async is false; otherwise unset thiss synchronous flag.
m_synchronous = !async;
// Empty thiss author request headers.
@ -441,7 +441,7 @@ WebIDL::ExceptionOr<void> XMLHttpRequest::send(Optional<DocumentOrXMLHttpRequest
body_with_type = TRY(Fetch::extract_body(realm, body->downcast<Fetch::BodyInitOrReadableBytes>()));
}
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