Are there any plans to support HTTP trailing headers in chunked requests as per 
https://tools.ietf.org/html/rfc2616#section-3.6.1?

If not, we would be interested in sending a patch for adding support. It looks 
like we would modify ngx_http_parse_chunked and refactor 
ngx_http_parse_header_line so we can reuse it for parsing trailing headers. And 
then have a directive to whitelist which trailing headers to allow.
When the request is proxied upstream, if it’s fully buffered we could add the 
trailing header as a request header. If it’s unbuffered, then just proxy them 
as trailing headers. And we would only include the whitelisted headers.

Does this sound like a reasonable approach? What are the chances of accepting 
such a patch.

Thanks,
Wesley
_______________________________________________
nginx-devel mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to