From ca994f634bbb168fa5537ca6b3f38cace40c739a Mon Sep 17 00:00:00 2001 From: akvlad Date: Tue, 7 Nov 2023 13:17:55 +0200 Subject: [PATCH] #fix: bun support POST query_range --- lib/bun_wrapper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/bun_wrapper.js b/lib/bun_wrapper.js index 555c41da..edc82a3a 100644 --- a/lib/bun_wrapper.js +++ b/lib/bun_wrapper.js @@ -44,7 +44,8 @@ const wrapper = (handler, parsers) => { raw: stream, log: log, params: ctx.params || {}, - query: {} + query: {}, + method: ctx.method } for (const [key, value] of (new URL(ctx.url)).searchParams) { if (!(key in req.query)) {