Klaus Demo nginx / eafe44f
Upstream: replaced u->pipe->temp_file with p->temp_file. While here, redundant parentheses removed. No functional changes. Maxim Dounin 8 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
29812981
29822982 if (p->upstream_eof || p->upstream_done) {
29832983
2984 tf = u->pipe->temp_file;
2984 tf = p->temp_file;
29852985
29862986 if (u->headers_in.status_n == NGX_HTTP_OK
29872987 && (u->headers_in.content_length_n == -1
2988 || (u->headers_in.content_length_n == tf->offset)))
2988 || u->headers_in.content_length_n == tf->offset))
29892989 {
29902990 ngx_http_upstream_store(r, u);
29912991 u->store = 0;
29982998 if (u->cacheable) {
29992999
30003000 if (p->upstream_done) {
3001 ngx_http_file_cache_update(r, u->pipe->temp_file);
3001 ngx_http_file_cache_update(r, p->temp_file);
30023002
30033003 } else if (p->upstream_eof) {
30043004
3005 tf = u->pipe->temp_file;
3005 tf = p->temp_file;
30063006
30073007 if (u->headers_in.content_length_n == -1
30083008 || u->headers_in.content_length_n
30153015 }
30163016
30173017 } else if (p->upstream_error) {
3018 ngx_http_file_cache_free(r->cache, u->pipe->temp_file);
3018 ngx_http_file_cache_free(r->cache, p->temp_file);
30193019 }
30203020 }
30213021