From c796c894d6c4496f8aa32cd40724d7f10785553c Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Fri, 3 Apr 2015 05:24:39 +0200 Subject: [PATCH] Remove empty path normalization to support base path use-case --- proposed/http-message.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/proposed/http-message.md b/proposed/http-message.md index 31702c55e..b39dfbf05 100644 --- a/proposed/http-message.md +++ b/proposed/http-message.md @@ -1233,8 +1233,13 @@ interface UriInterface /** * Retrieve the path segment of the URI. * - * This method MUST return a string; if no path is present it MUST return - * the string "/". + * This method MUST return a string. + * + * Normally, the empty path "" and absolute path "/" are considered equal as + * defined in RFC 7230 Section 2.7.3. But this method MUST NOT automatically + * do this normalization because in contexts with a trimmed base path, e.g. + * the front controller, this difference becomes significant. It's the task + * of the user to handle both "" and "/". * * @return string The path segment of the URI. */