Klaus Demo nginx / 0a6efee
Minor ngx_http_parse_request_line() optimization. Noted by Nils Kuhnhenn. Maxim Dounin 8 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
211211 case 5:
212212 if (ngx_str5cmp(m, 'M', 'K', 'C', 'O', 'L')) {
213213 r->method = NGX_HTTP_MKCOL;
214 break;
214215 }
215216
216217 if (ngx_str5cmp(m, 'P', 'A', 'T', 'C', 'H')) {
217218 r->method = NGX_HTTP_PATCH;
219 break;
218220 }
219221
220222 if (ngx_str5cmp(m, 'T', 'R', 'A', 'C', 'E')) {
221223 r->method = NGX_HTTP_TRACE;
224 break;
222225 }
223226
224227 break;