-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix missing port in Host header #89
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
Conversation
MockStream facilitates unit testing of code that uses NetworkStream.
I fixed a bug. Pull request pending: hyperium/hyper#89
And if the port is 80 or 443, is it omitted? Probably should have a test also. |
No, it isn't. I believe that always adding the port, even if it is the default one, is correct behavior: http://tools.ietf.org/html/rfc7230#section-5.4 Of course we could omit the port if it is the default one, but since it works as is and I wanted to get on with my other work, simplicity won out in this case :) Do you want me to omit default ports, or will you merge this as is? |
I'll make some adjustments, starting with this branch. I'll convert the
|
MockStream belongs in a separate "test" module within hyper for now, and should likely be moved to another crate in the future. |
Merged manually. Thanks @hannobraun! |
You're welcome, and thanks for improving on it! |
No description provided.