diff options
| author | Valentin Bartenev <vbart@nginx.com> | 2014-12-26 16:22:56 +0300 |
|---|---|---|
| committer | Valentin Bartenev <vbart@nginx.com> | 2014-12-26 16:22:56 +0300 |
| commit | 1858857c25dc38be78b2f008c9f496246a8f8c9f (patch) | |
| tree | 6db864dd73559ffab3aab206790a1a33704a9546 /src/http/ngx_http_cache.h | |
| parent | a54e37eddacacb5c3aedad898b431705948eb80c (diff) | |
| download | nginx-1858857c25dc38be78b2f008c9f496246a8f8c9f.tar.gz nginx-1858857c25dc38be78b2f008c9f496246a8f8c9f.tar.bz2 | |
Cache: update variant while setting header.
Some parts of code related to handling variants of a resource moved into
a separate function that is called earlier. This allows to use cache file
name as a prefix for temporary file in the following patch.
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_cache.h b/src/http/ngx_http_cache.h index 033882e53..4b8ebddda 100644 --- a/src/http/ngx_http_cache.h +++ b/src/http/ngx_http_cache.h @@ -162,7 +162,7 @@ ngx_int_t ngx_http_file_cache_new(ngx_http_request_t *r); ngx_int_t ngx_http_file_cache_create(ngx_http_request_t *r); void ngx_http_file_cache_create_key(ngx_http_request_t *r); ngx_int_t ngx_http_file_cache_open(ngx_http_request_t *r); -void ngx_http_file_cache_set_header(ngx_http_request_t *r, u_char *buf); +ngx_int_t ngx_http_file_cache_set_header(ngx_http_request_t *r, u_char *buf); void ngx_http_file_cache_update(ngx_http_request_t *r, ngx_temp_file_t *tf); void ngx_http_file_cache_update_header(ngx_http_request_t *r); ngx_int_t ngx_http_cache_send(ngx_http_request_t *); |
