-
Notifications
You must be signed in to change notification settings - Fork 18k
import/path: issue title #69075
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
Comments
Unlike many projects Go does not use the issue tracker for questions. Please see https://go.dev/wiki/Questions. Thanks. For the difference between setting the |
when i set
I expect that the host value will be the some (correct value) Request Dump: so its not expected behovior |
was debug with
|
You will get better and faster answers if you use a forum. Thanks. |
Go version
go version go1.22.5 windows/amd64
Output of
go env
in your module/workspace:What did you do?
im trying to understand, what the difference?
im do a request in python
and python request working well as exected
the output
then i do golang code:
and i got the response:
i trying to debug it and spend to much to to understand what the difference and after hours i understand that the problem is in:
this line
when i change this line to:
The request works as expected...
Why default http package have a different behaviours in this lines?
req.Header.Set("Host", "lb-api-rt.com")
req.Host = "lb-api-rt.com"
What did you see happen?
Status code: 404
<title>404 Not Found</title>2024/08/26 22:54:51
404 Not Found
nginx/1.18.0
What did you expect to see?
{"code":1,"message":"The promo code \u0022wolu24c\u0022 has already been taken once","i18n":"api.bonus.promo.already_taken","args":{"@code":"wolu24c","@player_id":"5552822"}}
The text was updated successfully, but these errors were encountered: