Mercurial > hg > nginx
comparison src/http/v2/ngx_http_v2_filter_module.c @ 7202:a49af443656f
HTTP/2: fixed build with -Werror=unused-but-set-variable.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 08 Feb 2018 12:11:30 +0300 |
parents | 641306096f5b |
children | 8b0553239592 |
comparison
equal
deleted
inserted
replaced
7201:641306096f5b | 7202:a49af443656f |
---|---|
686 u_char *start, *end, *last; | 686 u_char *start, *end, *last; |
687 ngx_int_t rc; | 687 ngx_int_t rc; |
688 ngx_str_t path, authority; | 688 ngx_str_t path, authority; |
689 ngx_uint_t i, push; | 689 ngx_uint_t i, push; |
690 ngx_table_elt_t **h; | 690 ngx_table_elt_t **h; |
691 ngx_connection_t *fc; | |
692 ngx_http_v2_stream_t *stream; | |
693 ngx_http_v2_loc_conf_t *h2lcf; | 691 ngx_http_v2_loc_conf_t *h2lcf; |
694 ngx_http_v2_connection_t *h2c; | |
695 ngx_http_complex_value_t *pushes; | 692 ngx_http_complex_value_t *pushes; |
696 | 693 |
697 fc = r->connection; | 694 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
698 | 695 "http2 push resources"); |
699 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, fc->log, 0, "http2 push resources"); | |
700 | |
701 stream = r->stream; | |
702 h2c = stream->connection; | |
703 | 696 |
704 ngx_str_null(&authority); | 697 ngx_str_null(&authority); |
705 | 698 |
706 h2lcf = ngx_http_get_module_loc_conf(r, ngx_http_v2_module); | 699 h2lcf = ngx_http_get_module_loc_conf(r, ngx_http_v2_module); |
707 | 700 |
742 | 735 |
743 h = r->headers_out.link.elts; | 736 h = r->headers_out.link.elts; |
744 | 737 |
745 for (i = 0; i < r->headers_out.link.nelts; i++) { | 738 for (i = 0; i < r->headers_out.link.nelts; i++) { |
746 | 739 |
747 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, fc->log, 0, | 740 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
748 "http2 parse link: \"%V\"", &h[i]->value); | 741 "http2 parse link: \"%V\"", &h[i]->value); |
749 | 742 |
750 start = h[i]->value.data; | 743 start = h[i]->value.data; |
751 end = h[i]->value.data + h[i]->value.len; | 744 end = h[i]->value.data + h[i]->value.len; |
752 | 745 |