-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NT] Normalise paths before proxying. (#2068)
## Description, Motivation and Context Due to various layers of proxying, sometimes a proxied request ends up with multiple leading slashes. Some web servers do not not normalise request paths, leading to 404's. This PR normalises the received request path on the mock server before matching against contract paths, and normalises the received request paths when proxying the request. ## Checklist: - [x] I've added/updated tests to cover my changes - [x] I've created an issue associated with this PR
- Loading branch information
1 parent
478d1a8
commit 996cef8
Showing
3 changed files
with
34 additions
and
4 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
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