-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Trailing forward slash gets lost in your implementation while it's preserved in other libraries (for example httpsoft/http-message)
$request = new Request('GET', 'https://example.com/test/');
echo (string) $request->getUri(); // "https://example.com/test"expected result:
$request = new Request('GET', 'https://example.com/test/');
echo (string) $request->getUri(); // "https://example.com/test/"UPDATE: Looks like the behavior is intentional:
Lines 238 to 243 in 0aa1c83
| if( empty($this->path) && $this->getAuthority() ){ | |
| $url .= "/"; | |
| } | |
| elseif( $this->path ) { | |
| $url .= ("/" . \trim($this->path, "/")); | |
| } |
Metadata
Metadata
Assignees
Labels
No labels