Added support for rewriting the Location header of 303 and 307 responses.