Fix XHR response changes

@lingyan 
This should still be `doXhr` to handle retries properly