Closed tino closed 2 years ago
It's an issue on our side, we need to interpret some specific headers (Host, User-Agent, etc.) differently according to https://github.com/golang/go/issues/29865#issuecomment-456305804 and https://github.com/golang/go/issues/29865#issuecomment-456516118
I'll try to do the fix next week
Nevermind, this is actually already implemented1. You can provide the parameter keep_host: true
to your mock declaration (see: https://smocker.dev/technical-documentation/mock-definition.html#format-of-proxy-section)
Ah thanks, I missed that.
I'm trying to run (from a docker container) with these proxy settings:
This results in my app properly seeing the
X-foo-bar
header, but theHost
header is still set tohost.docker.internal
(and my app doesn't like that).I have no idea how to fix this?