Skip to content

Commit 5907c78

Browse files
committed
Merge pull request #487 from Tobion/patch-2
Remove empty path normalization to support base path use-case
2 parents 27ba657 + c796c89 commit 5907c78

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

proposed/http-message.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,8 +1233,13 @@ interface UriInterface
12331233
/**
12341234
* Retrieve the path component of the URI.
12351235
*
1236-
* This method MUST return a string; if no path is present it MUST return
1237-
* the string "/".
1236+
* This method MUST return a string.
1237+
*
1238+
* Normally, the empty path "" and absolute path "/" are considered equal as
1239+
* defined in RFC 7230 Section 2.7.3. But this method MUST NOT automatically
1240+
* do this normalization because in contexts with a trimmed base path, e.g.
1241+
* the front controller, this difference becomes significant. It's the task
1242+
* of the user to handle both "" and "/".
12381243
*
12391244
* @return string The path component of the URI.
12401245
*/

0 commit comments

Comments
 (0)