Mercurial > hg > nginx
comparison src/http/ngx_http_copy_filter_module.c @ 3062:aa720192937b
use local variable and fix debug log message
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 29 Aug 2009 18:42:31 +0000 |
parents | 0d253659da12 |
children | 113cd532b328 |
comparison
equal
deleted
inserted
replaced
3061:f444f291ed38 | 3062:aa720192937b |
---|---|
87 if (r->aio) { | 87 if (r->aio) { |
88 return NGX_AGAIN; | 88 return NGX_AGAIN; |
89 } | 89 } |
90 | 90 |
91 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0, | 91 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0, |
92 "copy filter: \"%V?%V\"", &r->uri, &r->args); | 92 "http copy filter: \"%V?%V\"", &r->uri, &r->args); |
93 | 93 |
94 ctx = ngx_http_get_module_ctx(r, ngx_http_copy_filter_module); | 94 ctx = ngx_http_get_module_ctx(r, ngx_http_copy_filter_module); |
95 | 95 |
96 if (ctx == NULL) { | 96 if (ctx == NULL) { |
97 ctx = ngx_pcalloc(r->pool, sizeof(ngx_output_chain_ctx_t)); | 97 ctx = ngx_pcalloc(r->pool, sizeof(ngx_output_chain_ctx_t)); |
134 | 134 |
135 } else { | 135 } else { |
136 r->buffered |= NGX_HTTP_COPY_BUFFERED; | 136 r->buffered |= NGX_HTTP_COPY_BUFFERED; |
137 } | 137 } |
138 | 138 |
139 ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 139 ngx_log_debug3(NGX_LOG_DEBUG_HTTP, c->log, 0, |
140 "copy filter: %i \"%V?%V\"", rc, &r->uri, &r->args); | 140 "http copy filter: %i \"%V?%V\"", rc, &r->uri, &r->args); |
141 | 141 |
142 return rc; | 142 return rc; |
143 } | 143 } |
144 | 144 |
145 | 145 |