We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14c8a2c commit c796c89Copy full SHA for c796c89
proposed/http-message.md
@@ -1233,8 +1233,13 @@ interface UriInterface
1233
/**
1234
* Retrieve the path segment of the URI.
1235
*
1236
- * This method MUST return a string; if no path is present it MUST return
1237
- * the string "/".
+ * This method MUST return a string.
+ *
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 "/".
1243
1244
* @return string The path segment of the URI.
1245
*/
0 commit comments