diff options
author | networkException <git@nwex.de> | 2022-09-29 01:30:58 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-09-29 09:39:04 +0100 |
commit | 4230dbbb21ec68cbb9844130d5e90276c96d16c2 (patch) | |
tree | a2586bed833a3577a997d2e8cd5e7df232978bc1 /Userland/Libraries/LibWebSocket/ConnectionInfo.cpp | |
parent | 454bf1fde054591d1215404617126ce31b281171 (diff) | |
download | serenity-4230dbbb21ec68cbb9844130d5e90276c96d16c2.zip |
AK+Everywhere: Replace "protocol" with "scheme" url helpers
URL had properly named replacements for protocol(), set_protocol() and
create_with_file_protocol() already. This patch removes these function
and updates all call sites to use the functions named according to the
specification.
See https://url.spec.whatwg.org/#concept-url-scheme
Diffstat (limited to 'Userland/Libraries/LibWebSocket/ConnectionInfo.cpp')
-rw-r--r-- | Userland/Libraries/LibWebSocket/ConnectionInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWebSocket/ConnectionInfo.cpp b/Userland/Libraries/LibWebSocket/ConnectionInfo.cpp index 5bd7864fcd..b95633d4eb 100644 --- a/Userland/Libraries/LibWebSocket/ConnectionInfo.cpp +++ b/Userland/Libraries/LibWebSocket/ConnectionInfo.cpp @@ -17,7 +17,7 @@ bool ConnectionInfo::is_secure() const { // RFC 6455 Section 3 : // The URI is called "secure" if the scheme component matches "wss" case-insensitively. - return m_url.protocol().equals_ignoring_case("wss"sv); + return m_url.scheme().equals_ignoring_case("wss"sv); } String ConnectionInfo::resource_name() const |