]> git.kaiwu.me - nginx.git/commitdiff
fix client_body_in_file_only type
authorIgor Sysoev <igor@sysoev.ru>
Thu, 14 May 2009 11:31:50 +0000 (11:31 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 14 May 2009 11:31:50 +0000 (11:31 +0000)
src/http/ngx_http_core_module.c
src/http/ngx_http_core_module.h

index 73d7af96934db865d855506ca53483b88ec53c39..88d836a6b08e9cdebba1d29e5c5a87fa686ca99c 100644 (file)
@@ -3144,9 +3144,9 @@ ngx_http_core_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
                               NGX_HTTP_SATISFY_ALL);
     ngx_conf_merge_uint_value(conf->if_modified_since, prev->if_modified_since,
                               NGX_HTTP_IMS_EXACT);
-    ngx_conf_merge_value(conf->internal, prev->internal, 0);
-    ngx_conf_merge_value(conf->client_body_in_file_only,
+    ngx_conf_merge_uint_value(conf->client_body_in_file_only,
                               prev->client_body_in_file_only, 0);
+    ngx_conf_merge_value(conf->internal, prev->internal, 0);
     ngx_conf_merge_value(conf->sendfile, prev->sendfile, 0);
     ngx_conf_merge_size_value(conf->sendfile_max_chunk,
                               prev->sendfile_max_chunk, 0);
index 2c4e45acd2da5260654552ec05a306d9ac822fb0..915b438bc43a67fd97762bc1de19542c7ee13d43 100644 (file)
@@ -339,9 +339,9 @@ struct ngx_http_core_loc_conf_s {
 
     ngx_uint_t    satisfy;                 /* satisfy */
     ngx_uint_t    if_modified_since;       /* if_modified_since */
+    ngx_uint_t    client_body_in_file_only; /* client_body_in_file_only */
 
     ngx_flag_t    internal;                /* internal */
-    ngx_flag_t    client_body_in_file_only; /* client_body_in_file_only */
     ngx_flag_t    sendfile;                /* sendfile */
     ngx_flag_t    tcp_nopush;              /* tcp_nopush */
     ngx_flag_t    tcp_nodelay;             /* tcp_nodelay */