http
http copied to clipboard
No Host header added.
When creating a regular http request and manually using client.send not Header Host is added by default which makes the request fail (normally under 400) against standard web servers like nginx or apache.
Maybe such common header should be added by default? , the same way Content-Type is been added when request.body is set.
Hello, I see that this issue is still open.
I think that the Host header should be added by default when http request is generated: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host
Any news on that? Thanks!
Hello,
issue should be closed. Header host is automatically added in the method HttpClient.openUrl which is used under the hood in IOClient class.