Mercurial > hg > nginx
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 Thu Mar 29 18:53:34 2007 +0000 +++ b/src/http/ngx_http_parse.c Fri Mar 30 18:59:26 2007 +0000 @@ -146,6 +146,12 @@ 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: