---
http.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/http.c b/http.c
index 12ebde8..989907b 100644
--- a/http.c
+++ b/http.c
_AT_@ -401,6 +401,11 @@ http_send_response(int fd, struct request *r)
}
}
+ /* strip the port out of the host name */
+ if ((p = strchr(r->field[REQ_HOST], ':'))) {
+ *p = '\0';
+ }
+
/* redirect if targets differ, host is non-canonical or we prefixed */
if (strcmp(r->target, realtarget) || (s.vhost && vhostmatch &&
strcmp(r->field[REQ_HOST], vhostmatch))) {
--
2.10.0
Received on Mon Apr 02 2018 - 02:55:01 CEST
This archive was generated by hypermail 2.3.0 : Mon Apr 02 2018 - 03:00:37 CEST