bugfix: ngx.req.raw_header() could lead to buffer overflow and the "userdata length overflow" error due to misuse of r->header_end while modules like ngx_fastcgi and ngx_proxy can change r->header_end to point to buffers of their own. thanks sadmedved for the report.
bugfix: ngx.req.raw_header() would return garbled data when LF instead of CRLF is used as the line terminator in the original header.
bugfix: body_filter_by_lua*: reading ngx.arg[1] after clearing ngx.arg[1] (by assigning nil or "") could lead to segmentation faults. this regression had appeared in v0.9.10. thanks Jason Stangroome for the report in #398.
doc: markdown: fixed the "Back to TOC" links for the sections ("Nginx API for Lua" and "Directives") with inlined TOC. thanks Pierre-Yves Gérardy and Simon Eskildsen for the reports in #370 and #399, respectively.
trivial optimizations.
bugfix: the stream-typed cosocket resolver handler did not handle some special errors correctly.
improved the fix in commit 48e48305.
bugfix: the datagram-typed cosocket resolver handler did not handle some special errors correctly.
optimize: we now cache the userdata metatable (for the __gc metamethod) in the stream-typed cosocket implementation.
optimize: we now cache the userdata metatable (for the __gc metamethod) in the lua registry for the datagram-typed cosockets.