Skip to content

Commit

Permalink
gRPC: fixed missing state save in frame header parsing.
Browse files Browse the repository at this point in the history
Previously, frame state wasn't saved if HEADERS frame payload
that begins with header fragment was not received at once.
  • Loading branch information
pluknet committed Mar 20, 2018
1 parent 74ea120 commit e232421
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/http/modules/ngx_http_grpc_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -2410,6 +2410,7 @@ ngx_http_grpc_parse_header(ngx_http_request_t *r, ngx_http_grpc_ctx_t *ctx,
}

ctx->padding = 0;
ctx->frame_state = state;
}

if (state < sw_fragment) {
Expand Down

0 comments on commit e232421

Please sign in to comment.