[superagent] Use base http.Agent instead of extension https.Agent so that they both work (#39385)

This commit is contained in:
Anders Kindberg (Bengtsson)
2019-10-28 16:05:49 +01:00
committed by Jesse Trinity
parent b167945e7b
commit 3bcd68faa6

View File

@@ -9,6 +9,7 @@
// Lukas Elmer <https://github.com/lukaselmer>
// Jesse Rogers <https://github.com/theQuazz>
// Chris Arnesen <https://github.com/carnesen>
// Anders Kindberg <https://github.com/ghostganz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0
@@ -16,7 +17,7 @@
/// <reference lib="dom" />
import * as fs from 'fs';
import * as https from 'https';
import * as http from 'http';
import * as stream from 'stream';
import * as cookiejar from 'cookiejar';
@@ -38,7 +39,7 @@ declare const request: request.SuperAgentStatic;
declare namespace request {
interface SuperAgentRequest extends Request {
agent(agent?: https.Agent): this;
agent(agent?: http.Agent): this;
cookies: string;
method: string;