superagent
Advanced tools
Comparing version 0.12.3 to 0.12.4
@@ -5,3 +5,3 @@ { | ||
"description": "awesome http requests", | ||
"version": "0.12.3", | ||
"version": "0.12.4", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "http", |
0.12.4 / 2013-02-11 | ||
================== | ||
* fix get content-type even if can't get other headers in firefox. fixes #181 | ||
0.12.3 / 2013-02-11 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -273,2 +273,6 @@ | ||
this.header = parseHeader(xhr.getAllResponseHeaders()); | ||
// getAllResponseHeaders sometimes falsely returns "" for CORS requests, but | ||
// getResponseHeader still works. so we get content-type even if getting | ||
// other headers fails. | ||
this.header['content-type'] = xhr.getResponseHeader('content-type'); | ||
this.setHeaderProperties(this.header); | ||
@@ -275,0 +279,0 @@ this.body = this.parseBody(this.text); |
{ | ||
"name": "superagent", | ||
"version": "0.12.3", | ||
"version": "0.12.4", | ||
"description": "elegant & feature rich browser / node HTTP with a fluent API", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
96436
3284