Mercurial > hg > nginx-quic
comparison src/http/modules/proxy/ngx_http_proxy_upstream.c @ 194:2357fa41738a
nginx-0.0.1-2003-11-21-09:30:49 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 21 Nov 2003 06:30:49 +0000 |
parents | 71ce40b3c37b |
children | 8dee38ea9117 |
comparison
equal
deleted
inserted
replaced
193:dd66383796a5 | 194:2357fa41738a |
---|---|
934 | 934 |
935 rc = ngx_http_send_header(r); | 935 rc = ngx_http_send_header(r); |
936 | 936 |
937 p->header_sent = 1; | 937 p->header_sent = 1; |
938 | 938 |
939 if (p->cache && p->cache->ctx.file.fd != NGX_INVALID_FILE) { | |
940 if (ngx_close_file(p->cache->ctx.file.fd) == NGX_FILE_ERROR) { | |
941 ngx_log_error(NGX_LOG_ALERT, r->connection->log, ngx_errno, | |
942 ngx_close_file_n " \"%s\" failed", | |
943 p->cache->ctx.file.name.data); | |
944 } | |
945 } | |
946 | |
939 if (p->cachable) { | 947 if (p->cachable) { |
940 header = (ngx_http_cache_header_t *) p->header_in->start; | 948 header = (ngx_http_cache_header_t *) p->header_in->start; |
941 | 949 |
942 header->expires = p->cache->ctx.expires; | 950 header->expires = p->cache->ctx.expires; |
943 header->last_modified = p->cache->ctx.last_modified; | 951 header->last_modified = p->cache->ctx.last_modified; |