Skip to content
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 field is supposed to include port if not default #673

Closed
ExpandingMan opened this issue Feb 12, 2021 · 1 comment
Closed

Host header field is supposed to include port if not default #673

ExpandingMan opened this issue Feb 12, 2021 · 1 comment

Comments

@ExpandingMan
Copy link

This is according to mozilla. Apparently some applications get upset if they are being hosted on a different port and this header is not included.

┌ Info: HTTP.Messages.Request:
│ """
│ GET / HTTP/1.1
│ Host: localhost:8000
│ User-Agent: python-requests/2.23.0
│ Accept-Encoding: gzip, deflate
│ Accept: */*
│ Connection: keep-alive
│
└ """
┌ Info: HTTP.Messages.Request:
│ """
│ GET / HTTP/1.1
│ Host: localhost
│ Accept: */*
│ User-Agent: HTTP.jl/1.5.3
│ Content-Length: 0
│
└ """

The former is from Python requests and the latter is from HTTP.jl.

fredrikekre added a commit to fredrikekre/HTTP.jl that referenced this issue Feb 23, 2021
fredrikekre added a commit to fredrikekre/HTTP.jl that referenced this issue Feb 23, 2021
@quinnj quinnj closed this as completed in 4f0175c Feb 23, 2021
@ExpandingMan
Copy link
Author

Thanks all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant