You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I sniffer the network and find that "Abc" added to http header in every request,
but "Host" remains default value (someting like "120.76.205.241:8000")
I need to use specific value for "Host", or my elasticsearch server will return 404.
Its common to be able to define the host header in an http request,
sadly golang's standard library will clear any `Host` defined key in the
header maps with the value of the `req.Host`, which will default to host
of the current machine.
This commits allow users to set the `Host` header key and the code will
pass this values to the `req.Host` method, this will make sure that on the
other hand of the connection the value of the header will be the
expected.
If not explicit value is set we will default to the standard library
behavior.
Fixes: elastic#4842
Its common to be able to define the host header in an http request,
sadly golang's standard library will clear any `Host` defined key in the
header maps with the value of the `req.Host`, which will default to host
of the current machine.
This commits allow users to set the `Host` header key and the code will
pass this values to the `req.Host` method, this will make sure that on the
other hand of the connection the value of the header will be the
expected.
If not explicit value is set we will default to the standard library
behavior.
Fixes: #4842
configure file:
I sniffer the network and find that "Abc" added to http header in every request,
but "Host" remains default value (someting like "120.76.205.241:8000")
I need to use specific value for "Host", or my elasticsearch server will return 404.
Already asked in
https://discuss.elastic.co/t/filebeat-elasticsearch-output-unable-to-add-host-to-http-headers/96073
The text was updated successfully, but these errors were encountered: