Please accept the below patch as a means of avoiding adding the standard
port number to the backend request, as this is added to HTTP_HOST, and as
such, may break some applications.
diff -ruN pound-1.8.1-old/svc.c pound-1.8.1/svc.c
--- pound-1.8.1-old/svc.c 2005-02-09 22:16:30.000000000 +1100
+++ pound-1.8.1/svc.c 2005-02-13 00:42:21.000000000 +1100
(at)(at) -666,10 +690,7 (at)(at)
if(strchr(host, ':') != NULL)
/* the host already contains a port */
return NULL;
- sprintf(res, "Host: %s:%hd", host, ntohs(to_host->sin_port));
+ if(ntohs(to_host->sin_port) != 80)
+ sprintf(res, "Host: %s:%hd", host, ntohs(to_host->sin_port));
+ else
+ sprintf(res, "Host: %s", host);
return strdup(res);
}
|