comparison src/http/modules/ngx_http_dav_module.c @ 296:2ceaee987f37 NGINX_0_5_18

nginx 0.5.18 *) Feature: the ngx_http_sub_filter_module. *) Feature: the "$upstream_http_..." variables. *) Feature: now the $upstream_status and $upstream_response_time variables keep data about all upstreams before X-Accel-Redirect. *) Bugfix: a segmentation fault occurred in master process after first reconfiguration and receiving any signal if nginx was built with ngx_http_perl_module and perl did not support multiplicity; bug appeared in 0.5.9. *) Bugfix: if perl did not support multiplicity, then after reconfiguration perl code did not work; bug appeared in 0.3.38.
author Igor Sysoev <http://sysoev.ru>
date Thu, 19 Apr 2007 00:00:00 +0400
parents 5bef04fc3fd5
children fc223117327f
comparison
equal deleted inserted replaced
295:65b7ac8795e3 296:2ceaee987f37
583 depth = ngx_http_dav_depth(r, 0); 583 depth = ngx_http_dav_depth(r, 0);
584 584
585 if (depth != 0 && depth != NGX_HTTP_DAV_INFINITY_DEPTH) { 585 if (depth != 0 && depth != NGX_HTTP_DAV_INFINITY_DEPTH) {
586 return NGX_HTTP_BAD_REQUEST; 586 return NGX_HTTP_BAD_REQUEST;
587 } 587 }
588 588
589 over = r->headers_in.overwrite; 589 over = r->headers_in.overwrite;
590 590
591 if (over) { 591 if (over) {
592 if (over->value.len == 1) { 592 if (over->value.len == 1) {
593 ch = over->value.data[0]; 593 ch = over->value.data[0];
1001 1001
1002 static ngx_int_t 1002 static ngx_int_t
1003 ngx_http_dav_depth(ngx_http_request_t *r, ngx_int_t dflt) 1003 ngx_http_dav_depth(ngx_http_request_t *r, ngx_int_t dflt)
1004 { 1004 {
1005 ngx_table_elt_t *depth; 1005 ngx_table_elt_t *depth;
1006 1006
1007 depth = r->headers_in.depth; 1007 depth = r->headers_in.depth;
1008 1008
1009 if (depth == NULL) { 1009 if (depth == NULL) {
1010 return dflt; 1010 return dflt;
1011 } 1011 }