[nginx] HTTP/2: style and typos.
Valentin Bartenev
vbart at nginx.com
Thu Mar 30 13:36:30 UTC 2017
details: http://hg.nginx.org/nginx/rev/28dc369899ea
branches:
changeset: 6958:28dc369899ea
user: Piotr Sikora <piotrsikora at google.com>
date: Sun Mar 26 01:25:01 2017 -0700
description:
HTTP/2: style and typos.
Signed-off-by: Piotr Sikora <piotrsikora at google.com>
diffstat:
src/http/v2/ngx_http_v2.c | 11 ++++++-----
src/http/v2/ngx_http_v2.h | 4 ++--
2 files changed, 8 insertions(+), 7 deletions(-)
diffs (69 lines):
diff -r 83bae3d354ab -r 28dc369899ea src/http/v2/ngx_http_v2.c
--- a/src/http/v2/ngx_http_v2.c Wed Mar 29 20:21:01 2017 +0300
+++ b/src/http/v2/ngx_http_v2.c Sun Mar 26 01:25:01 2017 -0700
@@ -941,7 +941,7 @@ ngx_http_v2_state_read_data(ngx_http_v2_
if (size >= h2c->state.length) {
size = h2c->state.length;
- stream->in_closed = h2c->state.flags & NGX_HTTP_V2_END_STREAM_FLAG;
+ stream->in_closed = h2c->state.flags & NGX_HTTP_V2_END_STREAM_FLAG;
}
r = stream->request;
@@ -1905,7 +1905,7 @@ ngx_http_v2_state_rst_stream(ngx_http_v2
if (node == NULL || node->stream == NULL) {
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0,
- "unknown http2 stream");
+ "unknown http2 stream");
return ngx_http_v2_state_complete(h2c, pos, end);
}
@@ -2019,6 +2019,7 @@ ngx_http_v2_state_settings_params(ngx_ht
break;
case NGX_HTTP_V2_MAX_FRAME_SIZE_SETTING:
+
if (value > NGX_HTTP_V2_MAX_FRAME_SIZE
|| value < NGX_HTTP_V2_DEFAULT_FRAME_SIZE)
{
@@ -3076,7 +3077,7 @@ ngx_http_v2_pseudo_header(ngx_http_reque
}
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
- "client sent unknown pseudo header \"%V\"",
+ "client sent unknown pseudo-header \":%V\"",
&header->name);
return NGX_DECLINED;
@@ -3223,14 +3224,14 @@ ngx_http_v2_parse_scheme(ngx_http_reques
{
if (r->schema_start) {
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
- "client sent duplicate :schema header");
+ "client sent duplicate :scheme header");
return NGX_DECLINED;
}
if (header->value.len == 0) {
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
- "client sent empty :schema header");
+ "client sent empty :scheme header");
return NGX_DECLINED;
}
diff -r 83bae3d354ab -r 28dc369899ea src/http/v2/ngx_http_v2.h
--- a/src/http/v2/ngx_http_v2.h Wed Mar 29 20:21:01 2017 +0300
+++ b/src/http/v2/ngx_http_v2.h Sun Mar 26 01:25:01 2017 -0700
@@ -249,8 +249,8 @@ ngx_http_v2_queue_blocked_frame(ngx_http
{
ngx_http_v2_out_frame_t **out;
- for (out = &h2c->last_out; *out; out = &(*out)->next)
- {
+ for (out = &h2c->last_out; *out; out = &(*out)->next) {
+
if ((*out)->blocked || (*out)->stream == NULL) {
break;
}
More information about the nginx-devel
mailing list