Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

on_feed_response: checking if resp is defined before checking for res…

…p.body
  • Loading branch information...
commit 268a9fed4cd2c44f10e83209d799874b1cf3b64c 1 parent 198c201
@mborho mborho authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/feed.js
View
2  lib/feed.js
@@ -208,7 +208,7 @@ Feed.prototype.query = function query_feed() {
function on_feed_response(er, resp, body) {
clearTimeout(response_timer)
- if(resp.body || body)
+ if((resp !== undefined && resp.body) || body)
return self.die(new Error('Cannot handle a body in the feed response: ' + lib.JS(resp.body || body)))
if(timed_out) {
Please sign in to comment.
Something went wrong with that request. Please try again.