Hello!
On Thu, May 19, 2016 at 6:22 AM, JB wrote:
> In my Nginx OpenResty environment, if I post to a URL that it handles and
> I set the request header If-Match, then it returns with: 412 Precondition
> Failed. I'm assuming this is normally the expected behavior. However, I
> want Nginx to ignore all headers and just pass them through. Any ideas how
> to do that?
>
Well, if you don't need that, just remove the offending request header
yourself forcibly, as in
rewrite_by_lua_block {
ngx.req.clear_header("if-match")
}
This feature is implemented in a builtin nginx output filter module
called ngx_http_not_modified_filter_module IIRC.
Regards,
-agentzh