mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
LibWeb: Rename XHR::{m_url => m_request_url}
This commit is contained in:
parent
29a8414a05
commit
6e53dd8767
2 changed files with 3 additions and 3 deletions
|
@ -393,7 +393,7 @@ WebIDL::ExceptionOr<void> 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<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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue