aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-11-27 11:56:18 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-11-27 11:56:18 +0000
commit32717eb60ce2adbb68cfcf4250da2bc7ecbfe856 (patch)
tree9b4ac1949e76396d02eaf598093c98a34c5ef70a /src
parent685fd087530505754c4e09d21331742882648263 (diff)
downloadnginx-32717eb60ce2adbb68cfcf4250da2bc7ecbfe856.tar.gz
nginx-32717eb60ce2adbb68cfcf4250da2bc7ecbfe856.zip
r->headers_out.refresh
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_request.h1
-rw-r--r--src/http/ngx_http_upstream.c6
2 files changed, 5 insertions, 2 deletions
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h
index db001c5ea..86687cf91 100644
--- a/src/http/ngx_http_request.h
+++ b/src/http/ngx_http_request.h
@@ -230,6 +230,7 @@ typedef struct {
ngx_table_elt_t *content_length;
ngx_table_elt_t *content_encoding;
ngx_table_elt_t *location;
+ ngx_table_elt_t *refresh;
ngx_table_elt_t *last_modified;
ngx_table_elt_t *content_range;
ngx_table_elt_t *accept_ranges;
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 4502c1799..19e0fe2dd 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -2652,16 +2652,18 @@ ngx_http_upstream_rewrite_refresh(ngx_http_request_t *r, ngx_table_elt_t *h,
return NGX_OK;
}
-#if (NGX_DEBUG)
if (rc == NGX_OK) {
+ r->headers_out.refresh = ho;
+
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"rewritten refresh: \"%V\"", &ho->value);
}
-#endif
return rc;
}
+ r->headers_out.refresh = ho;
+
return NGX_OK;
}