Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #12 from felrood/master

Options are forgotten when set to false
  • Loading branch information...
commit ea67ac7daebc2b3a6f1ebb27d86dd4ff8da4dca3 2 parents feb18d0 + 5e444a7
@indexzero authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/http-agent.js
View
2  lib/http-agent.js
@@ -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];
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.