]> git.kaiwu.me - nginx.git/commitdiff
axe useless code
authorIgor Sysoev <igor@sysoev.ru>
Sun, 30 Dec 2007 10:19:32 +0000 (10:19 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 30 Dec 2007 10:19:32 +0000 (10:19 +0000)
src/http/modules/ngx_http_dav_module.c

index 8c45e6441eef7c2958343528f2b71c83720c8426..d1b9b35640039934bf4bb241f8032fa5f22d6a05 100644 (file)
@@ -354,12 +354,6 @@ ngx_http_dav_delete_handler(ngx_http_request_t *r)
         return NGX_HTTP_UNSUPPORTED_MEDIA_TYPE;
     }
 
-    rc = ngx_http_discard_request_body(r);
-
-    if (rc != NGX_OK) {
-        return rc;
-    }
-
     ngx_http_map_uri_to_path(r, &path, &root, 0);
 
     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,