Mercurial > hg > nginx
comparison src/http/v2/ngx_http_v2.c @ 6284:66ee1c5cb6aa
HTTP/2: fixed spelling.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Tue, 27 Oct 2015 23:16:35 +0300 |
parents | 16905ecbb49e |
children | 1f26bf65b1bc |
comparison
equal
deleted
inserted
replaced
6283:86b5f146b121 | 6284:66ee1c5cb6aa |
---|---|
1662 } | 1662 } |
1663 | 1663 |
1664 h->key.len = header->name.len; | 1664 h->key.len = header->name.len; |
1665 h->key.data = header->name.data; | 1665 h->key.data = header->name.data; |
1666 | 1666 |
1667 /* TODO Optimization: precalculate hash and hadnler for indexed headers. */ | 1667 /* TODO Optimization: precalculate hash and handler for indexed headers. */ |
1668 h->hash = ngx_hash_key(h->key.data, h->key.len); | 1668 h->hash = ngx_hash_key(h->key.data, h->key.len); |
1669 | 1669 |
1670 h->value.len = header->value.len; | 1670 h->value.len = header->value.len; |
1671 h->value.data = header->value.data; | 1671 h->value.data = header->value.data; |
1672 | 1672 |
1816 } | 1816 } |
1817 | 1817 |
1818 if (depend == h2c->state.sid) { | 1818 if (depend == h2c->state.sid) { |
1819 ngx_log_error(NGX_LOG_INFO, h2c->connection->log, 0, | 1819 ngx_log_error(NGX_LOG_INFO, h2c->connection->log, 0, |
1820 "client sent PRIORITY frame for stream %ui " | 1820 "client sent PRIORITY frame for stream %ui " |
1821 "with incorrect dependancy", h2c->state.sid); | 1821 "with incorrect dependency", h2c->state.sid); |
1822 | 1822 |
1823 node = ngx_http_v2_get_node_by_id(h2c, h2c->state.sid, 0); | 1823 node = ngx_http_v2_get_node_by_id(h2c, h2c->state.sid, 0); |
1824 | 1824 |
1825 if (node && node->stream) { | 1825 if (node && node->stream) { |
1826 if (ngx_http_v2_terminate_stream(h2c, node->stream, | 1826 if (ngx_http_v2_terminate_stream(h2c, node->stream, |