From 184c8a8874c7bfe7396f4e39727354c93d5bbf10 Mon Sep 17 00:00:00 2001 From: Josper Date: Mon, 23 Sep 2024 15:38:58 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20http-svc@1.0.0-rc.9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/http-svc/package.json | 3 ++- packages/http-svc/src/built-in/init-ctx.ts | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/http-svc/package.json b/packages/http-svc/package.json index 811b666..5866c56 100644 --- a/packages/http-svc/package.json +++ b/packages/http-svc/package.json @@ -1,7 +1,8 @@ { "name": "http-svc", - "version": "1.0.0-rc.8", + "version": "1.0.0-rc.9", "description": "A HTTP request service for browser and node.js", + "private": false, "main": "dist/index.legacy.js", "module": "dist/index.legacy.esm.js", "types": "types/index.d.ts", diff --git a/packages/http-svc/src/built-in/init-ctx.ts b/packages/http-svc/src/built-in/init-ctx.ts index a0cf45e..316ad30 100644 --- a/packages/http-svc/src/built-in/init-ctx.ts +++ b/packages/http-svc/src/built-in/init-ctx.ts @@ -6,8 +6,6 @@ const initCtx: IMiddlewareHandler = async function (ctx, next) { if (!ctx.request) return next() const { baseURL, headers, params, data, credentials = 'include' } = ctx.config let url = ctx.config.url - // 使用upper过的 - const method = ctx.request.method const { url: originUrl, params: originParams } = parseUrl(url) // 初始化url 和params