]> git.kaiwu.me - nginx.git/commit
Fixed post_action to not trigger "header already sent" alert.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 28 Nov 2014 13:57:50 +0000 (16:57 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 28 Nov 2014 13:57:50 +0000 (16:57 +0300)
commit7fa89c744afd1f05f4405d9a60b8c63a65ea56cc
treed86d628420262af825826e404d6d4194d5c061a5
parentd228fa5093e216465810c8a7b34284e84682622e
Fixed post_action to not trigger "header already sent" alert.

The alert was introduced in 03ff14058272 (1.5.4), and was triggered on each
post_action invocation.

There is no real need to call header filters in case of post_action,
so return NGX_OK from ngx_http_send_header() if r->post_action is set.
src/http/ngx_http_core_module.c