tls http https: don't pollute user's options object

This commit is contained in:
Maciej Małecki
2012-02-20 20:32:10 +01:00
committed by Ben Noordhuis
parent c6c6f98f1c
commit da908364a8
3 changed files with 22 additions and 24 deletions

View File

@@ -83,7 +83,6 @@ exports.request = function(options, cb) {
};
exports.get = function(options, cb) {
options.method = 'GET';
var req = exports.request(options, cb);
req.end();
return req;