-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Host
header always blank
#2561
Comments
|
I guess we could add middleware to actually set it back, but it seems incorrect (whether at the go level or echo) that it wouldn’t be set properly? |
If you search Golang github you probably find answer there. I doubt you are first person to ask the same question. Also |
golang/go#14239 just "won't fix" weird... |
probably some optimization etc. As |
I am closing this issue as I believe there nothing to fix/change from Echo side. |
Issue Description
ctx.Request().Header.Get("host")
is always a blank string (at least testing against my local server). I seeChecklist
Expected behaviour
It's the value of the
Host
headerActual behaviour
You can see that curl is setting the host header properly.
note the newline before indicating it's a blank string
Steps to reproduce
curl localhost:8080
Working code to debug
Version/commit
github.com/labstack/echo/v4 v4.9.1
The text was updated successfully, but these errors were encountered: