Permalink
Browse files

default follow to true if not boolean

  • Loading branch information...
1 parent 6bb1aec commit f2cd2382aaf57e3ea9d4bf771e27319ef66c6760 @Raynos Raynos committed Jul 10, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/request.js
View
@@ -20,7 +20,7 @@ function regRequest (method, uri, options, cb_) {
assert(cb_, "must pass callback")
options = options || {}
- var nofollow = !options.follow
+ var nofollow = (typeof options.follow === 'boolean' ? !options.follow : false)
var etag = options.etag
var what = options.body

0 comments on commit f2cd238

Please sign in to comment.