mirror of
https://github.com/nginx/nginx.git
synced 2025-06-10 19:42:39 +08:00
HTTP/2: style.
This commit is contained in:
parent
c32d9d28fd
commit
5e28302dfc
@ -3862,8 +3862,8 @@ ngx_http_v2_process_request_body(ngx_http_request_t *r, u_char *pos,
|
|||||||
} else {
|
} else {
|
||||||
if (size > (size_t) (buf->end - buf->last)) {
|
if (size > (size_t) (buf->end - buf->last)) {
|
||||||
ngx_log_error(NGX_LOG_INFO, fc->log, 0,
|
ngx_log_error(NGX_LOG_INFO, fc->log, 0,
|
||||||
"client intended to send body data "
|
"client intended to send body data "
|
||||||
"larger than declared");
|
"larger than declared");
|
||||||
|
|
||||||
return NGX_HTTP_BAD_REQUEST;
|
return NGX_HTTP_BAD_REQUEST;
|
||||||
}
|
}
|
||||||
|
@ -929,8 +929,8 @@ ngx_http_v2_push_resource(ngx_http_request_t *r, ngx_str_t *path,
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0,
|
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0,
|
||||||
"http2 pushing:%ui limit:%ui",
|
"http2 pushing:%ui limit:%ui",
|
||||||
h2c->pushing, h2c->concurrent_pushes);
|
h2c->pushing, h2c->concurrent_pushes);
|
||||||
|
|
||||||
if (h2c->pushing >= h2c->concurrent_pushes) {
|
if (h2c->pushing >= h2c->concurrent_pushes) {
|
||||||
return NGX_ABORT;
|
return NGX_ABORT;
|
||||||
|
Loading…
Reference in New Issue
Block a user