httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r581389 - /httpd/httpd/trunk/modules/http/http_core.c
Date Tue, 02 Oct 2007 21:21:05 GMT
Author: jim
Date: Tue Oct  2 14:21:04 2007
New Revision: 581389

URL: http://svn.apache.org/viewvc?rev=581389&view=rev
Log:

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.

Modified:
    httpd/httpd/trunk/modules/http/http_core.c

Modified: httpd/httpd/trunk/modules/http/http_core.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/http_core.c?rev=581389&r1=581388&r2=581389&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/http_core.c (original)
+++ httpd/httpd/trunk/modules/http/http_core.c Tue Oct  2 14:21:04 2007
@@ -236,7 +236,8 @@
 
 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;



Mime
View raw message