]> git.kaiwu.me - nginx.git/commitdiff
rename ngx_http_discard_body() to ngx_http_discard_request_body()
authorIgor Sysoev <igor@sysoev.ru>
Mon, 6 Aug 2007 15:37:22 +0000 (15:37 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 6 Aug 2007 15:37:22 +0000 (15:37 +0000)
src/http/modules/ngx_http_dav_module.c
src/http/modules/ngx_http_empty_gif_module.c
src/http/modules/ngx_http_flv_module.c
src/http/modules/ngx_http_memcached_module.c
src/http/modules/ngx_http_static_module.c
src/http/modules/ngx_http_stub_status_module.c
src/http/ngx_http.h
src/http/ngx_http_request_body.c
src/http/ngx_http_special_response.c

index f3fbb97315d759a3ebd94b87309d1fb20ea6011d..2378e367920daf6dd268cfa70996ff16dc5b2a08 100644 (file)
@@ -353,7 +353,7 @@ ngx_http_dav_delete_handler(ngx_http_request_t *r)
         return NGX_HTTP_UNSUPPORTED_MEDIA_TYPE;
     }
 
-    rc = ngx_http_discard_body(r);
+    rc = ngx_http_discard_request_body(r);
 
     if (rc != NGX_OK && rc != NGX_AGAIN) {
         return rc;
@@ -469,7 +469,7 @@ ngx_http_dav_mkcol_handler(ngx_http_request_t *r, ngx_http_dav_loc_conf_t *dlcf)
         return NGX_HTTP_UNSUPPORTED_MEDIA_TYPE;
     }
 
-    rc = ngx_http_discard_body(r);
+    rc = ngx_http_discard_request_body(r);
 
     if (rc != NGX_OK && rc != NGX_AGAIN) {
         return rc;
@@ -611,7 +611,7 @@ destination_done:
 
 overwrite_done:
 
-    rc = ngx_http_discard_body(r);
+    rc = ngx_http_discard_request_body(r);
 
     if (rc != NGX_OK && rc != NGX_AGAIN) {
         return rc;
index 050e75912e5a7c1cd2c626e2e2f6d51aa0ad58d8..dd9b9351012fd8169ab9401b86ed88132ccc25a3 100644 (file)
@@ -116,7 +116,7 @@ ngx_http_empty_gif_handler(ngx_http_request_t *r)
         return NGX_HTTP_NOT_ALLOWED;
     }
 
-    rc = ngx_http_discard_body(r);
+    rc = ngx_http_discard_request_body(r);
 
     if (rc != NGX_OK && rc != NGX_AGAIN) {
         return rc;
index 6fda6baf168ebee854d4b71fdd4a4c1bfbe541f6..e1bec8b813ef4d3442ea6fbfe735fbafe88f1720 100644 (file)
@@ -89,7 +89,7 @@ ngx_http_flv_handler(ngx_http_request_t *r)
         return NGX_DECLINED;
     }
 
-    rc = ngx_http_discard_body(r);
+    rc = ngx_http_discard_request_body(r);
 
     if (rc != NGX_OK && rc != NGX_AGAIN) {
         return rc;
index f7205418cc5dee3fb08a66cd38d17caf9682ea9c..1cb8b749c467313f3895beb0ac4e887519d99ec0 100644 (file)
@@ -167,7 +167,7 @@ ngx_http_memcached_handler(ngx_http_request_t *r)
         return NGX_HTTP_NOT_ALLOWED;
     }
 
-    rc = ngx_http_discard_body(r);
+    rc = ngx_http_discard_request_body(r);
 
     if (rc != NGX_OK && rc != NGX_AGAIN) {
         return rc;
index 8f355dcf9ce886b126dd4e10f1c5789f3d525083..e074b234bea9f3ab1983aa5d1002a580beb38d3f 100644 (file)
@@ -100,7 +100,7 @@ ngx_http_static_handler(ngx_http_request_t *r)
         return NGX_DECLINED;
     }
 
-    rc = ngx_http_discard_body(r);
+    rc = ngx_http_discard_request_body(r);
 
     if (rc != NGX_OK && rc != NGX_AGAIN) {
         return rc;
index 4fe9c04d52337af321956825f4439409528dec23..10b3937393c1844c4ae85478a3cfae7ba167f3cc 100644 (file)
@@ -69,7 +69,7 @@ static ngx_int_t ngx_http_status_handler(ngx_http_request_t *r)
         return NGX_HTTP_NOT_ALLOWED;
     }
 
-    rc = ngx_http_discard_body(r);
+    rc = ngx_http_discard_request_body(r);
 
     if (rc != NGX_OK && rc != NGX_AGAIN) {
         return rc;
index be6da0f6845e5a4187128735288533a2f8f3322b..8b04b7a35583099e3ba6f5f1f47467edc3180929 100644 (file)
@@ -98,7 +98,7 @@ size_t ngx_http_get_time(char *buf, time_t t);
 
 
 
-ngx_int_t ngx_http_discard_body(ngx_http_request_t *r);
+ngx_int_t ngx_http_discard_request_body(ngx_http_request_t *r);
 void ngx_http_block_reading(ngx_http_request_t *r);
 
 
index fdb49c9fdd164780bbd03bf586572bca889d9481..b9400be8d08fa9b89a3a724ce6a909be04f0fa56 100644 (file)
@@ -14,8 +14,8 @@ static void ngx_http_read_client_request_body_handler(ngx_http_request_t *r);
 static ngx_int_t ngx_http_do_read_client_request_body(ngx_http_request_t *r);
 static ngx_int_t ngx_http_write_request_body(ngx_http_request_t *r,
     ngx_chain_t *body);
-static void ngx_http_read_discarded_body_handler(ngx_http_request_t *r);
-static ngx_int_t ngx_http_read_discarded_body(ngx_http_request_t *r);
+static void ngx_http_read_discarded_request_body_handler(ngx_http_request_t *r);
+static ngx_int_t ngx_http_read_discarded_request_body(ngx_http_request_t *r);
 
 
 /*
@@ -425,7 +425,7 @@ ngx_http_write_request_body(ngx_http_request_t *r, ngx_chain_t *body)
 
 
 ngx_int_t
-ngx_http_discard_body(ngx_http_request_t *r)
+ngx_http_discard_request_body(ngx_http_request_t *r)
 {
     ssize_t       size;
     ngx_event_t  *rev;
@@ -461,22 +461,22 @@ ngx_http_discard_body(ngx_http_request_t *r)
         }
     }
 
-    r->read_event_handler = ngx_http_read_discarded_body_handler;
+    r->read_event_handler = ngx_http_read_discarded_request_body_handler;
 
     if (ngx_handle_read_event(rev, 0) == NGX_ERROR) {
         return NGX_HTTP_INTERNAL_SERVER_ERROR;
     }
 
-    return ngx_http_read_discarded_body(r);
+    return ngx_http_read_discarded_request_body(r);
 }
 
 
 static void
-ngx_http_read_discarded_body_handler(ngx_http_request_t *r)
+ngx_http_read_discarded_request_body_handler(ngx_http_request_t *r)
 {
     ngx_int_t  rc;
 
-    rc = ngx_http_read_discarded_body(r);
+    rc = ngx_http_read_discarded_request_body(r);
 
     if (rc == NGX_AGAIN) {
         if (ngx_handle_read_event(r->connection->read, 0) == NGX_ERROR) {
@@ -492,7 +492,7 @@ ngx_http_read_discarded_body_handler(ngx_http_request_t *r)
 
 
 static ngx_int_t
-ngx_http_read_discarded_body(ngx_http_request_t *r)
+ngx_http_read_discarded_request_body(ngx_http_request_t *r)
 {
     size_t   size;
     ssize_t  n;
index 1797603a092f1b02103f2be0ec5beb41f63976f4..944bf335e7af95712e657280245a188a60df97d6 100644 (file)
@@ -327,7 +327,7 @@ ngx_http_special_response_handler(ngx_http_request_t *r, ngx_int_t error)
     ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
                    "http special response: %d, \"%V\"", error, &r->uri);
 
-    rc = ngx_http_discard_body(r);
+    rc = ngx_http_discard_request_body(r);
 
     if (rc == NGX_HTTP_INTERNAL_SERVER_ERROR) {
         error = NGX_HTTP_INTERNAL_SERVER_ERROR;