Adding support for redirect header responses