mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:47:45 +00:00
AK: Do not consider port of 0 as a null port
This fixes an issue where if a port number of 0 was given for a non special scheme the port number was being dropped.
This commit is contained in:
parent
66f4cdba85
commit
23e82114b4
4 changed files with 14 additions and 4 deletions
|
@ -34,3 +34,12 @@ hostname => '[1:1:0:0:1::]'
|
|||
port => ''
|
||||
pathname => '/'
|
||||
search => ''
|
||||
unknown://serenityos.org:0
|
||||
protocol => 'unknown:'
|
||||
username => ''
|
||||
password => ''
|
||||
host => 'serenityos.org:0'
|
||||
hostname => 'serenityos.org'
|
||||
port => '0'
|
||||
pathname => ''
|
||||
search => ''
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
'http://[0:1:0:1:0:1:0:1]',
|
||||
'http://[1:0:1:0:1:0:1:0]',
|
||||
'http://[1:1:0:0:1:0:0:0]/',
|
||||
'unknown://serenityos.org:0',
|
||||
]) {
|
||||
printURL(url);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue