Fix a bug with XHR2 response types
Update doc