comparison src/http/ngx_http_upstream.h @ 8029:e0027c8438b0

Upstream: simplified Content-Encoding handling. Since introduction of offset handling in ngx_http_upstream_copy_header_line() in revision 573:58475592100c, the ngx_http_upstream_copy_content_encoding() function is no longer needed, as its behaviour is exactly equivalent to ngx_http_upstream_copy_header_line() with appropriate offset. As such, the ngx_http_upstream_copy_content_encoding() function was removed. Further, the u->headers_in.content_encoding field is not used anywhere, so it was removed as well. Further, Content-Encoding handling no longer depends on NGX_HTTP_GZIP, as it can be used even without any gzip handling compiled in (for example, in the charset filter).
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 30 May 2022 21:25:42 +0300
parents ef6a3a99a81a
children cdc2724858ca
comparison
equal deleted inserted replaced
8028:27d12017f300 8029:e0027c8438b0
283 ngx_table_elt_t *accept_ranges; 283 ngx_table_elt_t *accept_ranges;
284 ngx_table_elt_t *www_authenticate; 284 ngx_table_elt_t *www_authenticate;
285 ngx_table_elt_t *transfer_encoding; 285 ngx_table_elt_t *transfer_encoding;
286 ngx_table_elt_t *vary; 286 ngx_table_elt_t *vary;
287 287
288 #if (NGX_HTTP_GZIP)
289 ngx_table_elt_t *content_encoding;
290 #endif
291
292 ngx_table_elt_t *cache_control; 288 ngx_table_elt_t *cache_control;
293 ngx_table_elt_t *set_cookie; 289 ngx_table_elt_t *set_cookie;
294 290
295 off_t content_length_n; 291 off_t content_length_n;
296 time_t last_modified_time; 292 time_t last_modified_time;