Permalink
Browse files

httpclient: Don't include port in host: header

  • Loading branch information...
1 parent 41ad6ff commit 3e80ed9a9284d525c4752e9cd9dcb235e8bf4e15 @andoma committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/fileaccess/fa_http.c
View
@@ -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) {
@wader

wader Oct 9, 2012

Contributor

this looks weird

@andoma

andoma Oct 9, 2012

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 {

0 comments on commit 3e80ed9

Please sign in to comment.