Added support for passing back location header.