comparison src/http/ngx_http_parse.c @ 182:13710a1813ad NGINX_0_3_38

nginx 0.3.38 *) Feature: the ngx_http_dav_module. *) Change: the ngx_http_perl_module optimizations. Thanks to Sergey Skvortsov. *) Feature: the ngx_http_perl_module supports the $r->request_body_file method. *) Feature: the "client_body_in_file_only" directive. *) Workaround: now on disk overflow nginx tries to write access logs once a second only. Thanks to Anton Yuzhaninov and Maxim Dounin. *) Bugfix: now the "limit_rate" directive more precisely limits rate if rate is more than 100 Kbyte/s. Thanks to ForJest. *) Bugfix: now the IMAP/POP3 proxy escapes the "\r" and "\n" symbols in login and password to pass authorization server. Thanks to Maxim Dounin.
author Igor Sysoev <http://sysoev.ru>
date Fri, 14 Apr 2006 00:00:00 +0400
parents 3080c5392b89
children 54aabf2b0bc6
comparison
equal deleted inserted replaced
181:de8983d10e75 182:13710a1813ad
69 69
70 if (p - m == 3) { 70 if (p - m == 3) {
71 71
72 if (m[0] == 'G' && m[1] == 'E' && m[2] == 'T') { 72 if (m[0] == 'G' && m[1] == 'E' && m[2] == 'T') {
73 r->method = NGX_HTTP_GET; 73 r->method = NGX_HTTP_GET;
74
75 } else if (m[0] == 'P' && m[1] == 'U' && m[2] == 'T') {
76 r->method = NGX_HTTP_PUT;
74 } 77 }
75 78
76 } else if (p - m == 4) { 79 } else if (p - m == 4) {
77 80
78 if (m[0] == 'P' && m[1] == 'O' 81 if (m[0] == 'P' && m[1] == 'O'
82 85
83 } else if (m[0] == 'H' && m[1] == 'E' 86 } else if (m[0] == 'H' && m[1] == 'E'
84 && m[2] == 'A' && m[3] == 'D') 87 && m[2] == 'A' && m[3] == 'D')
85 { 88 {
86 r->method = NGX_HTTP_HEAD; 89 r->method = NGX_HTTP_HEAD;
90 }
91
92 } else if (p - m == 6) {
93
94 if (m[0] == 'D' && m[1] == 'E' && m[2] == 'L'
95 && m[3] == 'E' && m[4] == 'T' && m[5] == 'E')
96 {
97 r->method = NGX_HTTP_DELETE;
87 } 98 }
88 } 99 }
89 100
90 state = sw_spaces_before_uri; 101 state = sw_spaces_before_uri;
91 break; 102 break;