Skip to content

Commit 7e5db48

Browse files
committed
don't call to getAllResponseHeaders on IE<10
1 parent c0765cd commit 7e5db48

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

dist/hook.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* https://github.com/doubleleft/hook-javascript
44
*
55
* @copyright 2015 Doubleleft
6-
* @build 2/10/2015
6+
* @build 2/11/2015
77
*/
88
(function(window) {
99
//
@@ -9884,7 +9884,8 @@ Hook.Client.prototype.request = function(segments, method, data) {
98849884
success: function(response) {
98859885
var total,
98869886
data = null,
9887-
responseHeaders = xhr.getAllResponseHeaders();
9887+
// IE<10 doesn't have 'getAllResponseHeaders' method.
9888+
responseHeaders = (xhr.getAllResponseHeaders && xhr.getAllResponseHeaders()) || "";
98889889

98899890
try {
98909891
data = JSON.parseWithDate(response);

0 commit comments

Comments
 (0)