mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Rename XHR::{m_url => m_request_url}
This commit is contained in:
parent
29a8414a05
commit
6e53dd8767
Notes:
sideshowbarker
2024-07-18 04:38:32 +09:00
Author: https://github.com/linusg
Commit: 6e53dd8767
Pull-request: https://github.com/SerenityOS/serenity/pull/16048
Reviewed-by: https://github.com/davidot
Reviewed-by: https://github.com/kennethmyhra ✅
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue