Hi, I need to test my custom feature, and for this...
# ktor
m
Hi, I need to test my custom feature, and for this I need to change the
remoteHost
value, but it looks like it's hardcoded in
TestApplicationRequest.local
. How can I set it to a custom value? The technique
ForwardedHeaderSupport
uses to have a mutable version of
RequestConnectionPoint
is internal I also can't use the already existing MutableOriginConnectionPoint, as it's deprecated
I ended up installing the `XForwardedHeaderSupport`and manually setting the relevant headers to manipuate everything as i needed
m
same problem, same solution. Thanks!