File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -320,8 +320,8 @@ public static function parseNormalized(Stringable|string $uri): array
320320 }
321321
322322 $ path = Encoder::normalizePath ($ path );
323- if (null !== self ::buildAuthority ($ components ) && ('' === $ path )) {
324- $ path = '/ ' ;
323+ if (null !== self ::buildAuthority ($ components ) && ('/ ' === $ path )) {
324+ $ path = '' ;
325325 }
326326
327327 $ components ['path ' ] = (string ) $ path ;
Original file line number Diff line number Diff line change @@ -1063,7 +1063,7 @@ public static function normalizedUriProvider(): iterable
10631063
10641064 yield 'URI query is partially decoded without affecting delimiter characters ' => [
10651065 'uri ' => 'https://example.com?foo=bar%26baz%3Dqux ' ,
1066- 'expected ' => 'https://example.com/ ?foo=bar%26baz%3Dqux ' ,
1066+ 'expected ' => 'https://example.com?foo=bar%26baz%3Dqux ' ,
10671067 ];
10681068
10691069 yield 'URI IPv6 host is not compressed ' => [
You can’t perform that action at this time.
0 commit comments