This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensures that path segregated middleware may provide an altered request
Discovered while backporting to the 2.X series. Essentially, a path segregated middleware should still be able to pass a new request on to the next layer. However, in doing so, the _path_ should be reset. This patch updates the `PathMiddlewareDecoratorIntegrationTest` to reflect this behavior, and updates the anonymous request handler created by the `PathMiddlewareDecorator` to invoke the composed handler with the runtime request after resetting its URI instance with the original path.
- Loading branch information
1 parent
aa0e8d5
commit ee21d90
Showing
2 changed files
with
59 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters