Rewrite the response on redirect
Use do/end for multiline blocks