feat: Add request and response transformer wasm plugin (#549)

This commit is contained in:
WeixinX
2023-10-07 15:47:20 +08:00
committed by GitHub
parent be8563765e
commit 1ded5322a5
12 changed files with 2402 additions and 4 deletions

View File

@@ -189,7 +189,10 @@ func MakeRequestAndExpectEventuallyConsistentResponse(t *testing.T, r roundtripp
if expected.Request.ActualRequest.Headers != nil {
for name, value := range expected.Request.ActualRequest.Headers {
req.Headers[name] = []string{value}
vals := strings.Split(value, ",")
for _, val := range vals {
req.Headers[name] = append(req.Headers[name], strings.TrimSpace(val))
}
}
}