diff src/http/ngx_http_parse.c @ 1151:b1ebd03de948

disable TRACE method
author Igor Sysoev <igor@sysoev.ru>
date Fri, 30 Mar 2007 18:59:26 +0000
parents ee42dc53078b
children 67077918b965
line wrap: on
line diff
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -146,6 +146,12 @@ ngx_http_parse_request_line(ngx_http_req
                         r->method = NGX_HTTP_MKCOL;
                     }
 
+                    if (m[0] == 'T' && m[1] == 'R'
+                        && m[2] == 'A' && m[3] == 'C' && m[4] == 'E')
+                    {
+                        r->method = NGX_HTTP_TRACE;
+                    }
+
                     break;
 
                 case 6: