1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

only handle the request if server-info is the handler

Submitted by:	Greg Stein


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87645 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jeff Trawick
2001-01-10 19:23:25 +00:00
parent e7ee420927
commit 83b77a0d64

View File

@@ -275,6 +275,9 @@ static int display_info(request_rec *r)
server_rec *serv = r->server;
int comma = 0;
if (strcmp(r->handler, "server-info"))
return DECLINED;
r->allowed |= (1 << M_GET);
if (r->method_number != M_GET)
return DECLINED;