modifyRequest

Modifies a request before retrying.