From 2c5ba484a2dd8f214b9cdb53aa952688bc54cb2b Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Sun, 28 Aug 2022 19:03:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20Add=20config.httpclient.u?= =?UTF-8?q?seHttpClientNext=20defined=20(#5001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/eggjs/egg/pull/5000 --- index.d.ts | 2 ++ test/fixtures/apps/app-ts/config/config.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/index.d.ts b/index.d.ts index 5f8bf5b774..986f3c4d57 100644 --- a/index.d.ts +++ b/index.d.ts @@ -270,6 +270,8 @@ declare module 'egg' { dnsCacheLookupInterval?: number; /** DNS cache max age */ dnsCacheMaxLength?: number; + /** use urllib@3 HttpClient */ + useHttpClientNext?: boolean; } export interface EggAppConfig { diff --git a/test/fixtures/apps/app-ts/config/config.ts b/test/fixtures/apps/app-ts/config/config.ts index 183eeb2483..8ec11ec451 100644 --- a/test/fixtures/apps/app-ts/config/config.ts +++ b/test/fixtures/apps/app-ts/config/config.ts @@ -14,5 +14,9 @@ export default () => { }, }; + config.httpclient = { + useHttpClientNext: false, + }; + return config; }