lua-http
lua-http copied to clipboard
http2/stream: fix trailers validation
problem: h2_stream validate_header reject valid trailers
cause: for response headers, validate_header ignores the nth_header parameter, and checked the pseudo-header :status, even for response trailers.
fix: only check for :status on the first header.