]> granicus.if.org Git - curl/commitdiff
corrected the Host: header's port number
authorDaniel Stenberg <daniel@haxx.se>
Fri, 28 Jul 2000 07:55:21 +0000 (07:55 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 28 Jul 2000 07:55:21 +0000 (07:55 +0000)
lib/http.c

index 9372e488ef96897145959ea0d1ceb6da9dc30947..711775bbdd4d18be47ec753824bd9058cf07eb31 100644 (file)
@@ -293,10 +293,7 @@ CURLcode http(struct connectdata *conn)
   }
 
   if(!checkheaders(data, "Host:")) {
-    if(data->port != PORT_HTTP)
-      data->ptr_host = maprintf("Host: %s:%d\r\n", host, data->port);
-    else
-      data->ptr_host = maprintf("Host: %s\r\n", host);
+    data->ptr_host = maprintf("Host: %s:%d\r\n", host, data->remote_port);
   }
 
   if(!checkheaders(data, "Pragma:"))