node-modules / mm

An simple but flexible mock(or say stub) package, mock mate
Other
159 stars 16 forks source link

http.globalAgent change between 0.11.11 and 0.11.12 #10

Closed fengmk2 closed 10 years ago

fengmk2 commented 10 years ago

Need to find out what is diffs.

fengmk2 commented 10 years ago

0.11.12

function (options, cb) {
  if (util.isString(options)) {
    options = url.parse(options);
  } else {
    options = util._extend({}, options);
  }
  options._defaultAgent = globalAgent;
  return http.request(options, cb);
}
fengmk2 commented 10 years ago

0.11.11

function (options, cb) {
  return globalAgent.request(options, cb);
}