Permalink
Browse files

Merge pull request #12 from felrood/master

Options are forgotten when set to false
  • Loading branch information...
2 parents feb18d0 + 5e444a7 commit ea67ac7daebc2b3a6f1ebb27d86dd4ff8da4dca3 @indexzero committed Jul 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http-agent.js
View
@@ -56,7 +56,7 @@ var HttpAgent = exports.HttpAgent = function (host, urls, options) {
//
var self = this;
['headers', 'json', 'followRedirect', 'maxRedirects', 'encoding', 'timeout'].forEach(function (opt) {
- if (options[opt]) {
+ if (typeof(options[opt]) != 'undefined') {
self.options[opt] = options[opt];
}
});

0 comments on commit ea67ac7

Please sign in to comment.