Skip to content

Commit

Permalink
httpclient: Don't include port in host: header
Browse files Browse the repository at this point in the history
  • Loading branch information
andoma committed Oct 9, 2012
1 parent 41ad6ff commit 3e80ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fileaccess/fa_http.c
Expand Up @@ -788,7 +788,7 @@ http_headers_init(struct http_header_list *l, const http_file_t *hf)

LIST_INIT(l);

if(hc->hc_port != 80) {
if(hc->hc_port != 80 && 0) {

This comment has been minimized.

Copy link
@wader

wader Oct 9, 2012

Contributor

this looks weird

This comment has been minimized.

Copy link
@andoma

andoma Oct 9, 2012

Author Owner

i commented it out

snprintf(str, sizeof(str), "%s:%d", hc->hc_hostname, hc->hc_port);
http_header_add(l, "Host", str, 0);
} else {
Expand Down

0 comments on commit 3e80ed9

Please sign in to comment.