summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-11-11 15:09:55 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-11-11 15:09:55 +0000
commitc48f07e8ed20b308d2d9379e81ed1bbefae7b619 (patch)
treeacbf5fe039158799b3288d02a58f546098ab43ba
parent0580361389134875b9fadbfd12b7162e993545d1 (diff)
Disable the TRACE method completely. It is a security risk and is not
that useful for debugging. OK henning, deraadt
-rw-r--r--usr.sbin/httpd/src/main/http_protocol.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/httpd/src/main/http_protocol.c b/usr.sbin/httpd/src/main/http_protocol.c
index b44be2af73c..e4974dae94b 100644
--- a/usr.sbin/httpd/src/main/http_protocol.c
+++ b/usr.sbin/httpd/src/main/http_protocol.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: http_protocol.c,v 1.28 2005/02/09 12:13:09 henning Exp $ */
+/* $OpenBSD: http_protocol.c,v 1.29 2005/11/11 15:09:54 cloder Exp $ */
/* ====================================================================
* The Apache Software License, Version 1.1
*
@@ -824,10 +824,6 @@ API_EXPORT(int) ap_method_number_of(const char *method)
if (strcmp(method, "OPTIONS") == 0)
return M_OPTIONS;
break;
- case 'T':
- if (strcmp(method, "TRACE") == 0)
- return M_TRACE;
- break;
case 'L':
if (strcmp(method, "LOCK") == 0)
return M_LOCK;