Fix dataType not being set correctly in XHR adapter