dgaudet 97/08/05 01:24:34
Modified: src http_protocol.c
Log:
I'm on a roll tonight. Fix a bug with HTTP/1.1 and the recent hashed
ip-vhosts commit.
Revision Changes Path
1.151 +3 -0 apache/src/http_protocol.c
Index: http_protocol.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_protocol.c,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -r1.150 -r1.151
--- http_protocol.c 1997/08/05 06:02:42 1.150
+++ http_protocol.c 1997/08/05 08:24:33 1.151
@@ -849,6 +849,9 @@
if (r->server->is_virtual == 0) {
check_default_server (r);
}
+ } else if (!r->hostname) {
+ /* must set this for HTTP/1.1 support */
+ r->hostname = table_get (r->headers_in, "Host");
}
/* we have finished the search for a vhost */