Skip to content

Commit

Permalink
Merge pull request #5 from fidian/load-error
Browse files Browse the repository at this point in the history
Allow capturing of non-200 responses
  • Loading branch information
eligrey committed Apr 4, 2013
2 parents 2d7ff8f + c6e0c94 commit 970078a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pmxdr-host.js
Expand Up @@ -82,7 +82,7 @@ if (this.JSON && (!JSON.stringify || !JSON.parse))

req.onreadystatechange = function() {
if (this.readyState == 4) {
if (this.status == 200) {
if (!this.status) {
function getResponseHeader(header) {
return req.getResponseHeader(header)
}
Expand Down

0 comments on commit 970078a

Please sign in to comment.