From 2fa63aade9837272ca5dd7131b4bbe238fc9e3f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8E?= Date: Sun, 22 Oct 2023 23:00:51 +0800 Subject: [PATCH] fix(route): fix route.fulfill json option handling --- src/WS/route/Route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WS/route/Route.ts b/src/WS/route/Route.ts index 03f8cd9..5c6dbab 100644 --- a/src/WS/route/Route.ts +++ b/src/WS/route/Route.ts @@ -135,7 +135,7 @@ export default class Route { if (body !== undefined) { throw new Error('Can specify either body or json parameters'); } - fulfillBody = JSON.stringify(fulfillBody); + fulfillBody = JSON.stringify(json); } else { fulfillBody = body; }