diff options
author | Justin Karneges <justin@affinix.com> | 2013-12-18 13:34:27 -0800 |
---|---|---|
committer | Justin Karneges <justin@affinix.com> | 2013-12-18 13:34:27 -0800 |
commit | d5b14d321ad6659bb7bbc7384b483c16bdd78c41 (patch) | |
tree | 7c1e10bc1d9873c8e979e240ca1be72e6e003b6e | |
parent | 9a63528df554f1d281c3759f45f6ddfed625defb (diff) | |
download | pollymer-d5b14d321ad6659bb7bbc7384b483c16bdd78c41.tar pollymer-d5b14d321ad6659bb7bbc7384b483c16bdd78c41.tar.gz |
workaround for IE corrupted response headers
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | pollymer.js | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,4 @@ -VERSION = 1.0.0 +VERSION = 1.0.1 all: dist diff --git a/pollymer.js b/pollymer.js index 20995b2..53b0573 100644 --- a/pollymer.js +++ b/pollymer.js @@ -58,6 +58,9 @@ var DEBUG = true; var headerPairs = headerStr.split('\u000d\u000a'); for (var i = 0; i < headerPairs.length; i++) { var headerPair = headerPairs[i]; + if (headerPair[0] == '\u000a') { + headerPair = headerPair.substring(1); + } var index = headerPair.indexOf('\u003a\u0020'); if (index > 0) { var key = headerPair.substring(0, index); |