comparison src/http/ngx_http_upstream.c @ 516:7efcdb937752 NGINX_0_8_10

nginx 0.8.10 *) Bugfix: memory leaks if GeoIP City database was used. *) Bugfix: in copying temporary files to permanent storage area; the bug had appeared in 0.8.9.
author Igor Sysoev <http://sysoev.ru>
date Mon, 24 Aug 2009 00:00:00 +0400
parents 43cc6f0b77ce
children 86dad910eeb6
comparison
equal deleted inserted replaced
515:607556aed0a1 516:7efcdb937752
159 { ngx_string("Last-Modified"), 159 { ngx_string("Last-Modified"),
160 ngx_http_upstream_process_header_line, 160 ngx_http_upstream_process_header_line,
161 offsetof(ngx_http_upstream_headers_in_t, last_modified), 161 offsetof(ngx_http_upstream_headers_in_t, last_modified),
162 ngx_http_upstream_copy_last_modified, 0, 0 }, 162 ngx_http_upstream_copy_last_modified, 0, 0 },
163 163
164 { ngx_string("ETag"),
165 ngx_http_upstream_process_header_line,
166 offsetof(ngx_http_upstream_headers_in_t, etag),
167 ngx_http_upstream_copy_header_line,
168 offsetof(ngx_http_headers_out_t, etag), 0 },
169
164 { ngx_string("Server"), 170 { ngx_string("Server"),
165 ngx_http_upstream_process_header_line, 171 ngx_http_upstream_process_header_line,
166 offsetof(ngx_http_upstream_headers_in_t, server), 172 offsetof(ngx_http_upstream_headers_in_t, server),
167 ngx_http_upstream_copy_header_line, 173 ngx_http_upstream_copy_header_line,
168 offsetof(ngx_http_headers_out_t, server), 0 }, 174 offsetof(ngx_http_headers_out_t, server), 0 },
2659 { 2665 {
2660 return; 2666 return;
2661 } 2667 }
2662 } 2668 }
2663 2669
2670 path.len--;
2671
2664 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 2672 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
2665 "upstream stores \"%s\" to \"%s\"", 2673 "upstream stores \"%s\" to \"%s\"",
2666 tf->file.name.data, path.data); 2674 tf->file.name.data, path.data);
2667 2675
2668 (void) ngx_ext_rename_file(&tf->file.name, &path, &ext); 2676 (void) ngx_ext_rename_file(&tf->file.name, &path, &ext);