Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

httpclient: Don't include port in host: header

  • Loading branch information...
commit 3e80ed9a9284d525c4752e9cd9dcb235e8bf4e15 1 parent 41ad6ff
@andoma authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/fileaccess/fa_http.c
2  src/fileaccess/fa_http.c
@@ -788,7 +788,7 @@ http_headers_init(struct http_header_list *l, const http_file_t *hf)
- if(hc->hc_port != 80) {
+ if(hc->hc_port != 80 && 0) {
wader added a note

this looks weird

@andoma Owner
andoma added a note

i commented it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
snprintf(str, sizeof(str), "%s:%d", hc->hc_hostname, hc->hc_port);
http_header_add(l, "Host", str, 0);
} else {

this looks weird


i commented it out

Please sign in to comment.
Something went wrong with that request. Please try again.