Closed duhoobo closed 10 years ago
@duhoobo We should have used offsetof(ngx_http_echo_loc_conf_t, handler_cmds)
here instead of 0
. It is just a happy accident that offsetof(ngx_http_echo_loc_conf_t, handler_cmds)
happens to be 0
:)
Already fixed in master :)
Thank you for the report!
Learning your excellent code now, and running into the following question:
I find
echo_location[_async]
and several other directives's definitions lackoffset
somehow. A wild guess:ngx_http_echo_helper
parses them correctly just becausehandler_cmds
is the first member ofngx_http_echo_loc_conf_t
.Is this done on purpose or what?
Thanks.