]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Allow empty Host: header arguments.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 15 Apr 2002 02:58:11 +0000 (02:58 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 15 Apr 2002 02:58:11 +0000 (02:58 +0000)
commite955e53d372368f8af153134e6cd0c350b97ddd5
tree29fc395438edecc0a414e99fe36c3070d89361ab
parent04d8afc4a36ca723750922c0ea12e9a674e5753f
Allow empty Host: header arguments.

Previously, request that sent:

GET / HTTP/1.1
Host:

would get a 400.  RFC 2616 specifically allows for a "blank" host field.

The read_request code properly handled this, but the fix_hostname in
vhost.c would cause the 400.  Now, simply return in fix_hostname when
we see a blank hostname rather than erroring out.

PR: 7441

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94655 13f79535-47bb-0310-9956-ffa450edef68
server/vhost.c