mirror of
https://github.com/nginx/nginx.git
synced 2025-06-20 12:30:48 +08:00
HTTP/2: style.
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
This commit is contained in:
parent
a6048c0e1e
commit
e0b0fa6bf5
@ -979,7 +979,6 @@ ngx_http_v2_filter_get_data_frame(ngx_http_v2_stream_t *stream,
|
|||||||
ngx_chain_t *cl;
|
ngx_chain_t *cl;
|
||||||
ngx_http_v2_out_frame_t *frame;
|
ngx_http_v2_out_frame_t *frame;
|
||||||
|
|
||||||
|
|
||||||
frame = stream->free_frames;
|
frame = stream->free_frames;
|
||||||
|
|
||||||
if (frame) {
|
if (frame) {
|
||||||
@ -1007,7 +1006,7 @@ ngx_http_v2_filter_get_data_frame(ngx_http_v2_stream_t *stream,
|
|||||||
|
|
||||||
buf = cl->buf;
|
buf = cl->buf;
|
||||||
|
|
||||||
if (!buf->start) {
|
if (buf->start == NULL) {
|
||||||
buf->start = ngx_palloc(stream->request->pool,
|
buf->start = ngx_palloc(stream->request->pool,
|
||||||
NGX_HTTP_V2_FRAME_HEADER_SIZE);
|
NGX_HTTP_V2_FRAME_HEADER_SIZE);
|
||||||
if (buf->start == NULL) {
|
if (buf->start == NULL) {
|
||||||
@ -1182,7 +1181,6 @@ ngx_http_v2_data_frame_handler(ngx_http_v2_connection_t *h2c,
|
|||||||
ngx_http_v2_stream_t *stream;
|
ngx_http_v2_stream_t *stream;
|
||||||
|
|
||||||
stream = frame->stream;
|
stream = frame->stream;
|
||||||
|
|
||||||
cl = frame->first;
|
cl = frame->first;
|
||||||
|
|
||||||
if (cl->buf->tag == (ngx_buf_tag_t) &ngx_http_v2_module) {
|
if (cl->buf->tag == (ngx_buf_tag_t) &ngx_http_v2_module) {
|
||||||
|
Loading…
Reference in New Issue
Block a user