Mercurial > hg > nginx-ranges
comparison src/http/modules/ngx_http_dav_module.c @ 188:af37b7cb6698 NGINX_0_3_41
nginx 0.3.41
*) Feature: the -v switch.
*) Bugfix: the segmentation fault may occurred if the SSI page has
remote subrequests.
*) Bugfix: in FastCGI handling.
*) Bugfix: if the perl modules path was not set using
--with-perl_modules_path=PATH or the "perl_modules", then the
segmentation fault was occurred.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 21 Apr 2006 00:00:00 +0400 |
parents | 54aabf2b0bc6 |
children | 14050d2bec9b |
comparison
equal
deleted
inserted
replaced
187:c0ed72c62dfa | 188:af37b7cb6698 |
---|---|
114 | 114 |
115 if (r->uri.data[r->uri.len - 1] == '/') { | 115 if (r->uri.data[r->uri.len - 1] == '/') { |
116 return NGX_DECLINED; | 116 return NGX_DECLINED; |
117 } | 117 } |
118 | 118 |
119 if (r->headers_in.content_length_n < 0) { | |
120 return NGX_HTTP_BAD_REQUEST; | |
121 } | |
122 | |
123 r->request_body_in_file_only = 1; | 119 r->request_body_in_file_only = 1; |
124 r->request_body_in_persistent_file = 1; | 120 r->request_body_in_persistent_file = 1; |
125 r->request_body_delete_incomplete_file = 1; | 121 r->request_body_delete_incomplete_file = 1; |
126 r->request_body_file_group_access = 1; | 122 r->request_body_file_group_access = 1; |
127 r->request_body_file_log_level = 0; | 123 r->request_body_file_log_level = 0; |
310 if (status == NGX_HTTP_CREATED) { | 306 if (status == NGX_HTTP_CREATED) { |
311 if (ngx_http_dav_location(r, path.data) != NGX_OK) { | 307 if (ngx_http_dav_location(r, path.data) != NGX_OK) { |
312 ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); | 308 ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); |
313 return; | 309 return; |
314 } | 310 } |
311 | |
312 r->headers_out.content_length_n = 0; | |
315 } | 313 } |
316 | 314 |
317 r->headers_out.status = status; | 315 r->headers_out.status = status; |
318 r->header_only = 1; | 316 r->header_only = 1; |
319 | 317 |