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
{{ message }}
Repository navigation
Host header is missing from the Headers section #61
TL;DR: if Host-header is not defined, Request.Host will contain a host part of the URL the request was made to :(
In order to expose Host-header properly I need to find out how to either get an access to the raw HTTP-request, or how to figure out that Request.Host field contains the host header and not the part of URL
Activity
darklynx commentedon Aug 2, 2020
This is a result of Go-lang
net/httplibrary behavior, see https://golang.org/src/net/http/request.go#L159:(
On the other hand the
Request.Hostfield does not contain a host header only instead it is defined as following: https://golang.org/src/net/http/request.go#L221TL;DR: if
Host-header is not defined,Request.Hostwill contain a host part of the URL the request was made to :(In order to expose
Host-header properly I need to find out how to either get an access to the raw HTTP-request, or how to figure out thatRequest.Hostfield contains the host header and not the part of URL