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] ); } }