Closed FGasper closed 8 years ago
The spec requires the Host
field to match the authority, so this isn't something we allow.
@xdg I understand that; however, setting a Host header is useful for debugging.
Could you explain your use case more fully? Note there is now a peer
option (in the 0.057-TRIAL) that can let you send a request to an arbitrary IP; that keeps the URI and Host in sync while allowing the request to go to, say, localhost. Does that achieve what you need?
@xdg Yes, I think peer
… will do the trick. :) 👍
Great!
For debugging purposes it would be very handy to be able to set the “Host” header, e.g.:
I get why this is actively blocked in the module, but should it not be assumed that a caller that sets “Host” has a good reason to do so?