Welcome! Log In Create A New Profile

Advanced

about get etag from r->upstream.headers_in->etag

bit bull
June 10, 2009 08:02AM
hi, all:

sorry for my pool english. I write a filter, it need get
etag(http header) from proxied server. But I cant get etag in
r->upstream.headers_in->etag, so I added

"#if (NGX_HTTP_MYMODULE)
{ ngx_string("ETag"),
ngx_http_upstream_process_header_line, 1,
ngx_http_upstream_copy_header_line
offsetof(ngx_http_headers_out_t, etag), 1 },
#endif
"

to ngx_http_upstream.c:ngx_http_upstream_headers_in[].


It's work. but I worry about it will make some bugs, because
I dont know why nginx not supported this.

who can tell me something about this or nginx will supported
this in future?

thanks very much.

wengjy
Subject Author Posted

about get etag from r->upstream.headers_in->etag

bit bull June 10, 2009 08:02AM

Re: about get etag from r->upstream.headers_in->etag

Chieu June 11, 2009 10:55PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 205
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready