envjs / env-js

A pure-JavaScript browser environment.
http://www.envjs.com/
87 stars 19 forks source link

xhr.js has a type error in getAllResponseHeaders #17

Open orslumen opened 13 years ago

orslumen commented 13 years ago

In xhr.js line 453 refers to responseHeader, that should be responseHeaders if(this.responseHeaders.hasOwnProperty(header)){ see https://github.com/orslumen/env-js/commit/44fb38dc6ad85cf7f400806659a196158d597c8f

Note that when working with jQuery 1.5.1 all XHR requests will fail on this, as jQuery uses the standard XMLHttpRequest that is defined in xhr.js