We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f28ab3 commit 70bfa2eCopy full SHA for 70bfa2e
1 file changed
src/Server.php
@@ -103,7 +103,12 @@ final public function respondToRequest(Request $request): Response
103
}
104
$path = rawurldecode($path);
105
106
- // @FIXME: The path can also come from a 'Slug' header
+ // The path can also come from a 'Slug' header
107
+ if ($path === '' && $request->hasHeader('Slug')) {
108
+ $slugs = $request->getHeader('Slug');
109
+ // @CHECKME: First set header wins, is this correct? Or should it be the last one?
110
+ $path = reset($slugs);
111
+ }
112
113
$method = $this->getRequestMethod($request);
114
0 commit comments