mirror of
https://github.com/nginx/nginx.git
synced 2025-06-10 19:42:39 +08:00
HTTP/2: style and typos.
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
This commit is contained in:
parent
0a5e969dd0
commit
679bd07b42
@ -2019,6 +2019,7 @@ ngx_http_v2_state_settings_params(ngx_http_v2_connection_t *h2c, u_char *pos,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case NGX_HTTP_V2_MAX_FRAME_SIZE_SETTING:
|
case NGX_HTTP_V2_MAX_FRAME_SIZE_SETTING:
|
||||||
|
|
||||||
if (value > NGX_HTTP_V2_MAX_FRAME_SIZE
|
if (value > NGX_HTTP_V2_MAX_FRAME_SIZE
|
||||||
|| value < NGX_HTTP_V2_DEFAULT_FRAME_SIZE)
|
|| value < NGX_HTTP_V2_DEFAULT_FRAME_SIZE)
|
||||||
{
|
{
|
||||||
@ -3076,7 +3077,7 @@ ngx_http_v2_pseudo_header(ngx_http_request_t *r, ngx_http_v2_header_t *header)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
|
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
|
||||||
"client sent unknown pseudo header \"%V\"",
|
"client sent unknown pseudo-header \":%V\"",
|
||||||
&header->name);
|
&header->name);
|
||||||
|
|
||||||
return NGX_DECLINED;
|
return NGX_DECLINED;
|
||||||
@ -3223,14 +3224,14 @@ ngx_http_v2_parse_scheme(ngx_http_request_t *r, ngx_http_v2_header_t *header)
|
|||||||
{
|
{
|
||||||
if (r->schema_start) {
|
if (r->schema_start) {
|
||||||
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
|
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
|
||||||
"client sent duplicate :schema header");
|
"client sent duplicate :scheme header");
|
||||||
|
|
||||||
return NGX_DECLINED;
|
return NGX_DECLINED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (header->value.len == 0) {
|
if (header->value.len == 0) {
|
||||||
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
|
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
|
||||||
"client sent empty :schema header");
|
"client sent empty :scheme header");
|
||||||
|
|
||||||
return NGX_DECLINED;
|
return NGX_DECLINED;
|
||||||
}
|
}
|
||||||
|
@ -249,8 +249,8 @@ ngx_http_v2_queue_blocked_frame(ngx_http_v2_connection_t *h2c,
|
|||||||
{
|
{
|
||||||
ngx_http_v2_out_frame_t **out;
|
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) {
|
if ((*out)->blocked || (*out)->stream == NULL) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user