Added -rewriteRequestURL:withMethod:headers: hook