cloudfoundry / gorouter

CF Router
Apache License 2.0
441 stars 224 forks source link

fix: preserve x-forwarded-host for expect-100-continue req #424

Closed maxmoehl closed 3 months ago

maxmoehl commented 3 months ago

Summary

The new code path for Expect : 100-continue requests causes the X-Forwarded-Host header to be overwritten to the value of the Host header.

This commit will also copy the X-Forwarded-Host from the incoming to the outgoing request to align the behaviour with non-expect-100-continue requests.

Resolves: cloudfoundry/routing-release#420

Backward Compatibility

Breaking Change? No

geofffranks commented 3 months ago

Can you add a unit test for this regression so we can avoid breaking this in the future?

maxmoehl commented 3 months ago

Will do, can you take a look at the question I raised in the issue?