HTTP/2: deduplicated some code in ngx_http_v2_state_headers().
HTTP/2: deduplicated some code in ngx_http_v2_state_headers().

No functional changes.

firebase/nginx,firebase/nginx,firebase/nginx,firebase/nginx