aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Karneges <justin@affinix.com>2013-12-18 13:34:27 -0800
committerJustin Karneges <justin@affinix.com>2013-12-18 13:34:27 -0800
commitd5b14d321ad6659bb7bbc7384b483c16bdd78c41 (patch)
tree7c1e10bc1d9873c8e979e240ca1be72e6e003b6e
parent9a63528df554f1d281c3759f45f6ddfed625defb (diff)
downloadpollymer-d5b14d321ad6659bb7bbc7384b483c16bdd78c41.tar
pollymer-d5b14d321ad6659bb7bbc7384b483c16bdd78c41.tar.gz
workaround for IE corrupted response headers
-rw-r--r--Makefile2
-rw-r--r--pollymer.js3
2 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fc77805..f05326a 100644
--- a/Makefile
+++ b/Makefile
@@ -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);