diff src/http/ngx_http_parse.c @ 3613:64bd39f03182

PATCH method
author Igor Sysoev <igor@sysoev.ru>
date Thu, 10 Jun 2010 11:08:28 +0000
parents 67394153ec39
children 31e9677b15a1
line wrap: on
line diff
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -208,6 +208,10 @@ ngx_http_parse_request_line(ngx_http_req
                         r->method = NGX_HTTP_MKCOL;
                     }
 
+                    if (ngx_str5cmp(m, 'P', 'A', 'T', 'C', 'H')) {
+                        r->method = NGX_HTTP_PATCH;
+                    }
+
                     if (ngx_str5cmp(m, 'T', 'R', 'A', 'C', 'E')) {
                         r->method = NGX_HTTP_TRACE;
                     }