akosut 96/04/28 20:55:33
Modified: src http_protocol.c
Log:
Allow hostnames to be parsed correctly if they have a trailing dot, as
per the spec.
Revision Changes Path
1.19 +4 -0 apache/src/http_protocol.c
Index: http_protocol.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_protocol.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -C3 -r1.18 -r1.19
*** http_protocol.c 1996/04/16 07:54:07 1.18
--- http_protocol.c 1996/04/29 03:55:32 1.19
***************
*** 353,358 ****
--- 353,362 ----
if (*r->hostname && (atoi(r->hostname) != r->server->port))
return;
+ if ((host[strlen(host)-1]) == '.') {
+ host[strlen(host)-1] = '\0';
+ }
+
r->hostname = host;
for (s = r->server->next; s; s = s->next) {