if (opts.form) {
        opts.headers['content-type'] = opts.headers['content-type'] || 'application/x-www-form-urlencoded';
        opts.body = qs.stringify(opts.body);
      } else {