Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix(httpBackend): IE undefined response in legacy standards mode #4761

Closed
wants to merge 2 commits into from
Closed

fix(httpBackend): IE undefined response in legacy standards mode #4761

wants to merge 2 commits into from

Conversation

rthomson83
Copy link

Fixes issue #4738. IE10 using IE8 document standards mode has
responseType but response in undefined, responseText has a value in this
scenario.
Solution is to try and fallback to responseText if reponse is empty.

Robert Thomson added 2 commits November 2, 2013 16:15
Fixes issue #4738. IE10 using IE8 document standards mode has
responseType but response in undefined, responseText has a value in this
scenario.
Solution is to try and fallback to responseText if reponse is empty.
Fixes issue #4738. If response is undefined fallback to responseText.
Simplified over just amending previous entry.
@petebacondarwin
Copy link
Contributor

Have you checked that this change doesn't break real instances of IE8/9? Also it would need a unit test.

@rthomson83
Copy link
Author

I have tested in real instances of IE8 & 9 and cannot see any ill effects, response is undefined in browsers that don't support it so the or conditional takes care of that by falling back to responseText.
I checked the unit tests already present in the httpBackend spec and i reckon its already got test coverage, unless I'm missing something?

@rthomson83 rthomson83 closed this Nov 26, 2013
@rthomson83 rthomson83 deleted the httpBackend-response-fix branch November 26, 2013 19:55
@rthomson83 rthomson83 restored the httpBackend-response-fix branch November 26, 2013 19:56
@rthomson83 rthomson83 deleted the httpBackend-response-fix branch December 12, 2013 09:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants