Skip to content

Commit

Permalink
don't call to getAllResponseHeaders on IE<10
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Feb 11, 2015
1 parent c0765cd commit 7e5db48
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* https://github.com/doubleleft/hook-javascript
*
* @copyright 2015 Doubleleft
* @build 2/10/2015
* @build 2/11/2015
*/
(function(window) {
//
Expand Down Expand Up @@ -9884,7 +9884,8 @@ Hook.Client.prototype.request = function(segments, method, data) {
success: function(response) {
var total,
data = null,
responseHeaders = xhr.getAllResponseHeaders();
// IE<10 doesn't have 'getAllResponseHeaders' method.
responseHeaders = (xhr.getAllResponseHeaders && xhr.getAllResponseHeaders()) || "";

try {
data = JSON.parseWithDate(response);
Expand Down
Loading

0 comments on commit 7e5db48

Please sign in to comment.