diff src/http/ngx_http_parse.c @ 186:54aabf2b0bc6 NGINX_0_3_40

nginx 0.3.40 *) Feature: the ngx_http_dav_module supports the MKCOL method. *) Feature: the "create_full_put_path" directive. *) Feature: the "$limit_rate" variable.
author Igor Sysoev <http://sysoev.ru>
date Wed, 19 Apr 2006 00:00:00 +0400
parents 13710a1813ad
children af37b7cb6698
line wrap: on
line diff
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -89,6 +89,14 @@ ngx_http_parse_request_line(ngx_http_req
                         r->method = NGX_HTTP_HEAD;
                     }
 
+                } else if (p - m == 5) {
+
+                    if (m[0] == 'M' && m[1] == 'K'
+                        && m[2] == 'C' && m[3] == 'O' && m[4] == 'L')
+                    {
+                        r->method = NGX_HTTP_MKCOL;
+                    }
+
                 } else if (p - m == 6) {
 
                     if (m[0] == 'D' && m[1] == 'E' && m[2] == 'L'