File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1566,7 +1566,9 @@ impl Url {
1566
1566
} ) ;
1567
1567
} else {
1568
1568
self . query_start = None ;
1569
- self . strip_trailing_spaces_from_opaque_path ( ) ;
1569
+ if fragment. is_none ( ) {
1570
+ self . strip_trailing_spaces_from_opaque_path ( ) ;
1571
+ }
1570
1572
}
1571
1573
1572
1574
self . restore_already_parsed_fragment ( fragment) ;
Original file line number Diff line number Diff line change 42
42
<foo:///some/path> set pathname to <>
43
43
<http://example.net:8080/path> set port to <randomstring>
44
44
<file:///var/log/system.log> set href to <http://0300.168.0xF0>
45
- <data:space ?query#fragment> set search to <>
46
- <sc:space ?query#fragment> set search to <>
47
45
<file://monkey/> set pathname to <\\\\>
48
46
<file:///unicorn> set pathname to <//\\/>
49
47
<file:///unicorn> set pathname to <//monkey/..//>
50
48
<non-spec:/> set pathname to </.//p>
51
49
<non-spec:/> set pathname to </..//p>
52
50
<non-spec:/> set pathname to <//p>
53
- <non-spec:/.//> set pathname to <p>
51
+ <non-spec:/.//> set pathname to <p>
You can’t perform that action at this time.
0 commit comments