fix request pass-through aws channels can't test

common.GetRequestBody(c) read bod is null
This commit is contained in:
daggeryu
2026-01-20 10:08:56 +08:00
committed by GitHub
parent d2df342f4e
commit f538336f7f

View File

@@ -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{