Skip to content

Conversation

@dmethvin
Copy link
Member

Fixes #2498

The added unit test shows how this could be used to support an
ArrayBuffer return, but $.ajax does not support it natively.
The goal with this change was to avoid the exception.

Fixes jquery#2498

The added unit test shows how this could be used to support an
ArrayBuffer return, but $.ajax does not support it natively.
The goal with this change was to avoid the exception.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this comment because basically all XHR2 impls are supposed to throw on binary data in cases like ArrayBuffer.

@dmethvin
Copy link
Member Author

dmethvin commented Nov 2, 2015

OK, this should take care of it, I tried to make the comments a bit less wordy and added back the IE9 comment because the typeof check is only needed there.

@gibson042
Copy link
Member

LGTM

@dmethvin dmethvin closed this in 769446c Nov 4, 2015
@dmethvin dmethvin deleted the 2498-non-text-response branch May 24, 2016 19:07
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants