commit | 4f388765a1b956f83bfac8aa658877aafa8bc2e4 | [log] [tgz] |
---|---|---|
author | Sergey Kandaurov <pluknet@nginx.com> | Tue Apr 18 19:55:23 2017 +0300 |
committer | Sergey Kandaurov <pluknet@nginx.com> | Tue Apr 18 19:55:23 2017 +0300 |
tree | 641c9aad283d55fb23a09e7af250364300091b7b | |
parent | 79d99a09446e31e51e0809a7cc3e1c5ffd70a803 [diff] |
Sub filter: restored ngx_http_set_ctx() at the proper place. Previously, ngx_http_sub_header_filter() could fail with a partially initialized context, later accessed in ngx_http_sub_body_filter() if called from the perl content handler. The issue had appeared in 2c045e5b8291 (1.9.4). A better fix would be to handle ngx_http_send_header() errors in the perl module, though this doesn't seem to be easy enough.