From f538336f7f4718065dc2a9b52e26b72ff53a645e Mon Sep 17 00:00:00 2001 From: daggeryu <997411652@qq.com> Date: Tue, 20 Jan 2026 10:08:56 +0800 Subject: [PATCH] =?UTF-8?q?fix=C2=A0request=20pass-through=20aws=20channel?= =?UTF-8?q?s=20can't=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit common.GetRequestBody(c) read bod is null --- controller/channel-test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/channel-test.go b/controller/channel-test.go index 2ae8b0ef6..8ebfbdf64 100644 --- a/controller/channel-test.go +++ b/controller/channel-test.go @@ -332,7 +332,7 @@ func testChannel(channel *model.Channel, testModel string, endpointType string) } requestBody := bytes.NewBuffer(jsonData) - c.Request.Body = io.NopCloser(requestBody) + c.Request.Body = io.NopCloser(bytes.NewBuffer(jsonData)) resp, err := adaptor.DoRequest(c, info, requestBody) if err != nil { return testResult{