Make `httpRedirect` backwards compatible