mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
r->headers_out.refresh
This commit is contained in:
parent
685fd08753
commit
32717eb60c
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user