Klaus Demo nginx / f3ad346
gRPC: fixed parsing response headers split on CONTINUATION frames. Sergey Kandaurov 2 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
29522952 ctx->name.data[ctx->name.len] = '\0';
29532953
29542954 } else {
2955 ngx_memcpy(ctx->field_end, p, size);
2955 ctx->field_end = ngx_cpymem(ctx->field_end, p, size);
29562956 ctx->name.data[ctx->name.len] = '\0';
29572957 }
29582958
30613061 ctx->value.data[ctx->value.len] = '\0';
30623062
30633063 } else {
3064 ngx_memcpy(ctx->field_end, p, size);
3064 ctx->field_end = ngx_cpymem(ctx->field_end, p, size);
30653065 ctx->value.data[ctx->value.len] = '\0';
30663066 }
30673067