https://bz.apache.org/bugzilla/show_bug.cgi?id=62359
Bug ID: 62359
Summary: cannot add an output filter from lua code
Product: Apache httpd-2
Version: 2.4-HEAD
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_lua
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 35921
--> https://bz.apache.org/bugzilla/attachment.cgi?id=35921&action=edit
path to solve the problem
Output filters written in lua will only work if the filter is added to the
chain by means of configuration statements.
If you need to add an output filter from lua code hooked to some earlier point
in the request's lifecycle, no output will be produced.
This happens because the C code bound to the lua request_req:add_output_filter
method incorrectly set the filter's context to the lua state.
The correct behaviour is to let the lua_output_filter_handle (in mod_lua.c)
function create the context by setting it to NULL in the ap_add_output_filter
call made by req_add_output_filter (in lua_request.c).
BTW, as far as I can see, the documentation wrongly states the function name
(correct: add_output_filter, documented: addoutputfilter) and parameter's
semantics, in that it can only be a filter name and not a function)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]