fix x-forwarded-for header (#4111)

This commit is contained in:
fatedier authored and GitHub committed 2024-03-28 16:47:27 +08:00
1 parent 86f90f4d27
commit 590ccda677
10 files changed
+203 -50

No files matched your search

+1 -1
View File
@@ -113,7 +113,7 @@ func (e *RequestExpect) Ensure(fns ...EnsureFunc) {
if !bytes.Equal(e.expectResp, ret.Content) {
flog.Tracef("Response info: %+v", ret)
}
ExpectEqualValuesWithOffset(1, ret.Content, e.expectResp, e.explain...)
ExpectEqualValuesWithOffset(1, string(ret.Content), string(e.expectResp), e.explain...)
} else {
for _, fn := range fns {
ok := fn(ret)