diff options
author | Brendan Coles <bcoles@gmail.com> | 2020-11-04 06:20:20 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-11-04 19:34:00 +0100 |
commit | 3e0e84dcd125bc2cbf9f3423254584e9b9dc82c9 (patch) | |
tree | b0e4e2463b6eebe4a92a9142f10082fd38a20a9e /AK/ScopeGuard.h | |
parent | fb89c324c5a577712881fb5d385f5f3d004c071f (diff) | |
download | serenity-3e0e84dcd125bc2cbf9f3423254584e9b9dc82c9.zip |
AK::URL: Check if URL requires a port set to be considered a valid URL
`AK::URL` will now check if the URL requires a port to be set using
`AK::URL.protocol_requires_port(protocol)`.
If the URL does not specify a port, and no default port for the URL
protocol is found with `AK::URL.default_port_for_protocol(protocol)`,
the URL is considered to be invalid.
Diffstat (limited to 'AK/ScopeGuard.h')
0 files changed, 0 insertions, 0 deletions