bugfix: segfault might happen when reading or writing to a response header via the ngx.header.HEADER API in the case that the nginx core initiated a 301 redirect. this issue was caused by an optimization in the nginx core where ngx_http_core_find_config_phase, for example, does not fully initialize the "Location" response header after creating the header. thanks Vladimir Protasov for the report in #260.
bugfix: reading ngx.header.location did not work when auto-redirect was in action. this is a further fix for #260.
made the test for shdict:get_stale less possible to fail.
minor coding style fixes.
minor test fixes.
bugfix: segfaults would happen in ngx.req.set_header() and ngx.req.clear_header() for HTTP 0.9 requests. thanks Bin Wang for the report in agentzh/headers-more-nginx-module#14.
bumped version to 0.8.6.