if (util.isString(options)) {
    options = url.parse(options);
  } else {
    options = util._extend({}, options);
  }