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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/ng/httpBackend.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ function createHttpBackend($browser, XHR, $browserDefer, callbacks, rawDocument,

// responseText is the old-school way of retrieving response (supported by IE8 & 9)
// response/responseType properties were introduced in XHR Level2 spec (supported by IE10)
// response will fallback to responseText for IE running in legacy document standards mode
completeRequest(callback,
status || xhr.status,
(xhr.responseType ? xhr.response : xhr.responseText),
(xhr.response || xhr.responseText),
responseHeaders);
}
};
Expand Down