Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix proxy headers handling #60

Merged
merged 2 commits into from
Oct 28, 2017
Merged

Fix proxy headers handling #60

merged 2 commits into from
Oct 28, 2017

Conversation

Dreamescaper
Copy link
Contributor

@Dreamescaper Dreamescaper commented Oct 28, 2017

Fix following issues with proxy (and tests added):

  • content headers were not set in both request and response
  • cookies were not set in request
  • auto-redirect should not be performed when proxying requests
  • if redirect response happened, and absolute Location host is the one that we're proxying to, we should change it to called one
  • creating new HttpClient for each request in not the best idea. I changed it so it would be created only once per ResponseBuilder.

@StefH StefH merged commit c8c9ab9 into WireMock-Net:master Oct 28, 2017
@StefH
Copy link
Collaborator

StefH commented Oct 28, 2017

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants