Changing Uri when copying a Request should clear pathInfo
See original GitHub issueWhen copying a request object and supplying a new uri, e.g. req.copy(uri = uri("/new"))
, pathInfo does not currently get cleared. This results in confusing behavior as the previous pathInfo isn’t necessarily valid anymore in the new context. Thus, the more intuitive behavior would be to clear the pathInfo
when uri is changed so that a new, “fresh” copy of the request object is obtained.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Unable to overwrite pathInfo in a Symfony 2 Request
All the logic works properly and updates the original request. The problem is, even if I change the 'REQUEST_URI', the property $pathInfo remains...
Read more >pathinfo - Manual - PHP
Here is a simple function that gets the extension of a file. Simply using PATHINFO_EXTENSION will yield incorrect results if the path contains...
Read more >How to get "extended" path info from URL in a plugin
1 Answer 1 ... In reply to "Update 1": The code worked fine for me. So,. I'm still getting a 404 when I...
Read more >Clarify behaviour of getRequestURI(), getContextPath ...
so my conclusion is that if we retain path parameters, we have to retain them all the way through the processing chain and...
Read more >URL Rewrite Module Configuration Reference - Microsoft Learn
The URL Rewrite Module rewrites request URLs to simple, user-friendly, and search-engine friendly addresses that are displayed to users or in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’d like to take a crack at this - would the best way be to create a custom copy method?
Fixed by #1213