Skip to content

Commit

Permalink
catch more failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Jan 29, 2011
1 parent 8df9093 commit 67f6ccb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openid.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ function _get(getUrl, params, callback, redirects)
callback(data, res.headers, res.statusCode);
}
});
}).on("error", function () {
callback();
});
}

Expand Down Expand Up @@ -205,6 +207,8 @@ function _post(getUrl, data, callback, redirects)
callback(data, res.headers, res.statusCode);
}
});
}).on("error", function () {
callback();
}).end(encodedData);
}

Expand Down

0 comments on commit 67f6ccb

Please sign in to comment.