Permalink
Browse files

Fix latest XHR change to work on Firefox Mac which uses just \n as se…

…parator for getAllHeaders

Enyo-DCO-1.1-Signed-Off-By: Ben Combee (ben.combee@palm.com)
  • Loading branch information...
1 parent 3f70967 commit a094f420a98b0065ae1f4f6bd4e132ca474bb030 @unwiredben unwiredben committed Nov 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/ajax/Ajax.js
View
@@ -190,7 +190,7 @@ enyo.kind({
var headers = {};
var headersStr = [];
if (xhr.getAllResponseHeaders) {
- headersStr = xhr.getAllResponseHeaders().split('\r\n');
+ headersStr = xhr.getAllResponseHeaders().split(/\r?\n/);
}
for (var i = 0; i < headersStr.length; i++) {
var headerStr = headersStr[i];

0 comments on commit a094f42

Please sign in to comment.