-
Notifications
You must be signed in to change notification settings - Fork 376
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
Dialer's Header parameter doesn't work as intended #170
Comments
Thanks for the info, will take a look shortly. Do you have a fix (even a theoretical) for that btw ? |
You can fix it by replacing httpWriteHeader(bw, headerHost, u.Host) with the following code:
And you need to comment out https://github.com/gobwas/ws/blob/master/http.go#L323-L325. However, since I think you should decide how to fix it because this solution is related to this library's design itself. |
@cristaloleg have you looked at this? |
Yes, but AFAIR we didn't found a solution. Feel free to make a PR. |
Please have a look at: #194 |
Hello Gobwas,
Thanks for the great package!
I found that httpWriteUpgradeRequest doesn't work as intended.
When I try to add dial function like this:
I want to assign request's header to
h
, but it doesn't work as expected due to this code httpWriteHeader(bw, headerHost, u.Host).This causes both
h
andu.Host
to be assigned to the request's header.I hope this problem can be resolved soon.
Thanks,
FYI
We discussed this problem in this PR.
The text was updated successfully, but these errors were encountered: