comparison src/http/modules/ngx_http_fastcgi_module.c @ 6474:2cd019520210

Style.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 30 Mar 2016 11:52:16 +0300
parents 91c8d990fb45
children f01ab2dbcfdc
comparison
equal deleted inserted replaced
6473:9d7326d3f474 6474:2cd019520210
749 } 749 }
750 750
751 url.no_resolve = 1; 751 url.no_resolve = 1;
752 752
753 if (ngx_parse_url(r->pool, &url) != NGX_OK) { 753 if (ngx_parse_url(r->pool, &url) != NGX_OK) {
754 if (url.err) { 754 if (url.err) {
755 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, 755 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
756 "%s in upstream \"%V\"", url.err, &url.url); 756 "%s in upstream \"%V\"", url.err, &url.url);
757 } 757 }
758 758
759 return NGX_ERROR; 759 return NGX_ERROR;
1798 fh->padding_length = 0; 1798 fh->padding_length = 0;
1799 fh->reserved = 0; 1799 fh->reserved = 0;
1800 1800
1801 } else { 1801 } else {
1802 r->cache->header_start += u->buffer.pos - start 1802 r->cache->header_start += u->buffer.pos - start
1803 - sizeof(ngx_http_fastcgi_header_t); 1803 - sizeof(ngx_http_fastcgi_header_t);
1804 } 1804 }
1805 1805
1806 f->large_stderr = 0; 1806 f->large_stderr = 0;
1807 } 1807 }
1808 1808
2556 case ngx_http_fastcgi_st_type: 2556 case ngx_http_fastcgi_st_type:
2557 switch (ch) { 2557 switch (ch) {
2558 case NGX_HTTP_FASTCGI_STDOUT: 2558 case NGX_HTTP_FASTCGI_STDOUT:
2559 case NGX_HTTP_FASTCGI_STDERR: 2559 case NGX_HTTP_FASTCGI_STDERR:
2560 case NGX_HTTP_FASTCGI_END_REQUEST: 2560 case NGX_HTTP_FASTCGI_END_REQUEST:
2561 f->type = (ngx_uint_t) ch; 2561 f->type = (ngx_uint_t) ch;
2562 break; 2562 break;
2563 default: 2563 default:
2564 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, 2564 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
2565 "upstream sent invalid FastCGI " 2565 "upstream sent invalid FastCGI "
2566 "record type: %d", ch); 2566 "record type: %d", ch);
2567 return NGX_ERROR; 2567 return NGX_ERROR;
2652 2652
2653 2653
2654 static ngx_int_t 2654 static ngx_int_t
2655 ngx_http_fastcgi_add_variables(ngx_conf_t *cf) 2655 ngx_http_fastcgi_add_variables(ngx_conf_t *cf)
2656 { 2656 {
2657 ngx_http_variable_t *var, *v; 2657 ngx_http_variable_t *var, *v;
2658 2658
2659 for (v = ngx_http_fastcgi_vars; v->name.len; v++) { 2659 for (v = ngx_http_fastcgi_vars; v->name.len; v++) {
2660 var = ngx_http_add_variable(cf, &v->name, v->flags); 2660 var = ngx_http_add_variable(cf, &v->name, v->flags);
2661 if (var == NULL) { 2661 if (var == NULL) {
2662 return NGX_ERROR; 2662 return NGX_ERROR;