File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments