dgaudet 97/11/22 14:23:42
Modified: src/main http_request.c
Log:
Comment was a little bit inaccurate. Also explicitly mention 2068 S9,
S14.23 in the error message so that maybe we can avoid more and more
people complaining about us rejecting HTTP/1.1 requests without a Host:
header.
PR: 1454
Revision Changes Path
1.94 +4 -2 apachen/src/main/http_request.c
Index: http_request.c
===================================================================
RCS file: /export/home/cvs/apachen/src/main/http_request.c,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -r1.93 -r1.94
--- http_request.c 1997/11/15 03:29:57 1.93
+++ http_request.c 1997/11/22 22:23:41 1.94
@@ -988,10 +988,12 @@
/*
* Client sent us a HTTP/1.1 or later request without telling us the
* hostname, either with a full URL or a Host: header. We therefore
- * need to (as per the 1.1 spec) send an error
+ * need to (as per the 1.1 spec) send an error. As a special case,
+ * HTTP/1.1 mentions twice (S9, S14.23) that a request MUST contain
+ * a Host: header, and the server MUST respond with 400 if it doesn't.
*/
aplog_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, r->server,
- "client sent HTTP/1.1 request without hostname: %s", r->uri);
+ "client sent HTTP/1.1 request without hostname (see RFC2068
section 9, and 14.23): %s", r->uri);
die(BAD_REQUEST, r);
return;
}