File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1566,7 +1566,9 @@ impl Url {
15661566 } ) ;
15671567 } else {
15681568 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+ }
15701572 }
15711573
15721574 self . restore_already_parsed_fragment ( fragment) ;
Original file line number Diff line number Diff line change 4242<foo:///some/path> set pathname to <>
4343<http://example.net:8080/path> set port to <randomstring>
4444<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 <>
4745<file://monkey/> set pathname to <\\\\>
4846<file:///unicorn> set pathname to <//\\/>
4947<file:///unicorn> set pathname to <//monkey/..//>
5048<non-spec:/> set pathname to </.//p>
5149<non-spec:/> set pathname to </..//p>
5250<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