From f29cd16d7e1893a0abe991d9babd61cbc2275705 Mon Sep 17 00:00:00 2001 From: Igor Morozov Date: Fri, 14 Feb 2020 04:46:26 +0300 Subject: [PATCH] [SuperAgent] Add trustLocalhost (#42337) * Add trustLocalhost * Rename param to enabled Co-Authored-By: Adam Haglund Co-authored-by: Adam Haglund --- types/superagent/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/superagent/index.d.ts b/types/superagent/index.d.ts index 350b81f735..e133eb0d3a 100644 --- a/types/superagent/index.d.ts +++ b/types/superagent/index.d.ts @@ -163,6 +163,7 @@ declare namespace request { set(field: string, val: string): this; set(field: 'Cookie', val: string[]): this; timeout(ms: number | { deadline?: number, response?: number }): this; + trustLocalhost(enabled?: boolean): this; type(val: string): this; unset(field: string): this; use(fn: Plugin): this;