lua-http icon indicating copy to clipboard operation
lua-http copied to clipboard

http2/stream: fix trailers validation

Open Ph4ntomas opened this issue 4 months ago • 1 comments

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.

Ph4ntomas avatar Jul 24 '25 08:07 Ph4ntomas