Mercurial > hg > nginx
comparison src/http/modules/ngx_http_dav_module.c @ 1374:aabbf66b61ea
omit unnecessary conditions
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 07 Aug 2007 10:56:09 +0000 |
parents | cc114c85be0f |
children | f4eb04fd8579 |
comparison
equal
deleted
inserted
replaced
1373:fdea12ffb24a | 1374:aabbf66b61ea |
---|---|
353 return NGX_HTTP_UNSUPPORTED_MEDIA_TYPE; | 353 return NGX_HTTP_UNSUPPORTED_MEDIA_TYPE; |
354 } | 354 } |
355 | 355 |
356 rc = ngx_http_discard_request_body(r); | 356 rc = ngx_http_discard_request_body(r); |
357 | 357 |
358 if (rc != NGX_OK && rc != NGX_AGAIN) { | 358 if (rc != NGX_OK) { |
359 return rc; | 359 return rc; |
360 } | 360 } |
361 | 361 |
362 ngx_http_map_uri_to_path(r, &path, &root, 0); | 362 ngx_http_map_uri_to_path(r, &path, &root, 0); |
363 | 363 |
469 return NGX_HTTP_UNSUPPORTED_MEDIA_TYPE; | 469 return NGX_HTTP_UNSUPPORTED_MEDIA_TYPE; |
470 } | 470 } |
471 | 471 |
472 rc = ngx_http_discard_request_body(r); | 472 rc = ngx_http_discard_request_body(r); |
473 | 473 |
474 if (rc != NGX_OK && rc != NGX_AGAIN) { | 474 if (rc != NGX_OK) { |
475 return rc; | 475 return rc; |
476 } | 476 } |
477 | 477 |
478 ngx_http_map_uri_to_path(r, &path, &root, 0); | 478 ngx_http_map_uri_to_path(r, &path, &root, 0); |
479 | 479 |
611 | 611 |
612 overwrite_done: | 612 overwrite_done: |
613 | 613 |
614 rc = ngx_http_discard_request_body(r); | 614 rc = ngx_http_discard_request_body(r); |
615 | 615 |
616 if (rc != NGX_OK && rc != NGX_AGAIN) { | 616 if (rc != NGX_OK) { |
617 return rc; | 617 return rc; |
618 } | 618 } |
619 | 619 |
620 ngx_http_map_uri_to_path(r, &path, &root, 0); | 620 ngx_http_map_uri_to_path(r, &path, &root, 0); |
621 | 621 |