bugfix: reading ngx.header.location did not work when auto-redirect was in action. this is a further fix for #260.