diff options
author | Jim Jagielski <jim@apache.org> | 2007-10-02 23:21:04 +0200 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2007-10-02 23:21:04 +0200 |
commit | 2213956049ce670449423768dae8f914b4182796 (patch) | |
tree | f7cfb5365f763e4432e9156fcf2cdfdf3b7facbc /modules/http/http_core.c | |
parent | We should return (diff) | |
download | apache2-2213956049ce670449423768dae8f914b4182796.tar.xz apache2-2213956049ce670449423768dae8f914b4182796.zip |
Ensure the URI is "*" and not something like "*foo"
Oh, last commit was supposed to say we need to return
DONE so we don't invoke any handlers.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@581389 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http/http_core.c')
-rw-r--r-- | modules/http/http_core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/http/http_core.c b/modules/http/http_core.c index 94c55a6a7f..e1a2efd3e9 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -236,7 +236,8 @@ static int http_create_request(request_rec *r) static int http_send_options(request_rec *r) { - if ((r->method_number == M_OPTIONS) && r->uri && (r->uri[0] == '*')) { + if ((r->method_number == M_OPTIONS) && r->uri && (r->uri[0] == '*') && + (r->uri[1] == '\0')) { return DONE; /* Send HTTP pong, without Allow header */ } return DECLINED; |