From 44fb38dc6ad85cf7f400806659a196158d597c8f Mon Sep 17 00:00:00 2001 From: Orslumen Date: Fri, 8 Apr 2011 16:06:31 +0200 Subject: [PATCH] https://github.com/envjs/env-js/issues/17: xhr.js has a type error in getAllResponseHeaders --- envjs/xhr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envjs/xhr.js b/envjs/xhr.js index 4d659bff..f8296d6b 100644 --- a/envjs/xhr.js +++ b/envjs/xhr.js @@ -541,7 +541,7 @@ XMLHttpRequest.prototype = { throw new Error("INVALID_STATE_ERR"); } else { for (header in this.responseHeaders) { - if(this.responseHeader.hasOwnProperty(header)){ + if(this.responseHeaders.hasOwnProperty(header)){ returnedHeaders.push( header + ": " + this.responseHeaders[header] ); } }