diff --git a/lib/response.js b/lib/response.js index f83d761..cc588ba 100644 --- a/lib/response.js +++ b/lib/response.js @@ -87,6 +87,7 @@ Response.prototype.handle = function (res) { } } else if (res.readyState === 4) { + if (!this.headers) this.headers = parseHeaders(res); if (!this.statusCode) { this.statusCode = res.status; this.emit('ready');