comparison src/http/ngx_http_upstream.c @ 6474:2cd019520210

Style.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 30 Mar 2016 11:52:16 +0300
parents 91c8d990fb45
children 88f012eee7d8 2204d71e88e5
comparison
equal deleted inserted replaced
6473:9d7326d3f474 6474:2cd019520210
1881 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 1881 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
1882 "http upstream send request body"); 1882 "http upstream send request body");
1883 1883
1884 if (!r->request_body_no_buffering) { 1884 if (!r->request_body_no_buffering) {
1885 1885
1886 /* buffered request body */ 1886 /* buffered request body */
1887 1887
1888 if (!u->request_sent) { 1888 if (!u->request_sent) {
1889 u->request_sent = 1; 1889 u->request_sent = 1;
1890 out = u->request_bufs; 1890 out = u->request_bufs;
1891 1891
1892 } else { 1892 } else {
1893 out = NULL; 1893 out = NULL;
1894 } 1894 }
1895 1895
1896 return ngx_output_chain(&u->output, out); 1896 return ngx_output_chain(&u->output, out);
1897 } 1897 }
1898 1898
1899 if (!u->request_sent) { 1899 if (!u->request_sent) {
1900 u->request_sent = 1; 1900 u->request_sent = 1;
1901 out = u->request_bufs; 1901 out = u->request_bufs;
4325 4325
4326 u = r->upstream; 4326 u = r->upstream;
4327 pa = &u->headers_in.cache_control; 4327 pa = &u->headers_in.cache_control;
4328 4328
4329 if (pa->elts == NULL) { 4329 if (pa->elts == NULL) {
4330 if (ngx_array_init(pa, r->pool, 2, sizeof(ngx_table_elt_t *)) != NGX_OK) 4330 if (ngx_array_init(pa, r->pool, 2, sizeof(ngx_table_elt_t *)) != NGX_OK)
4331 { 4331 {
4332 return NGX_ERROR; 4332 return NGX_ERROR;
4333 } 4333 }
4334 } 4334 }
4335 4335
4336 ph = ngx_array_push(pa); 4336 ph = ngx_array_push(pa);
4337 if (ph == NULL) { 4337 if (ph == NULL) {
4338 return NGX_ERROR; 4338 return NGX_ERROR;