Browse Source

Merge pull request #2693 from daggeryu/main

fix request pass-through aws channels can't test
Seefs 1 tháng trước cách đây
mục cha
commit
c49f820e24
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      controller/channel-test.go

+ 1 - 1
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{