diff options
author | Teddy Wing | 2020-07-18 19:07:22 +0200 |
---|---|---|
committer | Teddy Wing | 2020-07-18 19:07:22 +0200 |
commit | 287c8514ee2efe80a5fce3ddbd15d886b459116c (patch) | |
tree | b94f93738a34f63990f1a91c6bf54bcc5244f43c /examples | |
parent | e3f4e806cad703def89c7a96c06bda8dfd94990a (diff) | |
download | fastcgi-conduit-287c8514ee2efe80a5fce3ddbd15d886b459116c.tar.bz2 |
FastCgiRequest::path: Get path from `REQUEST_URI`
Use the `REQUEST_URI` param instead of `SCRIPT_NAME` to get the request
path.
Using `SCRIPT_NAME` caused issues with redirects.
If my FastCGI program has the file name `script.fcgi`, and I set up a
redirect from `/script` to `/script.fcgi`, then `path()` should return
`/script` when using that path.
In the above case, because we were using the `SCRIPT_NAME` param,
`path()` would return `/script.fcgi` instead.
This caused routes defined with a `RouteBuilder` to not match correctly.
Now that we're using `REQUEST_URI`, we need to trim the query string and
hash, which are included in the param value, since we only want the URI
path.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions