mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 09:18:51 +02:00
fixed serialization and middleware compose
This commit is contained in:
@@ -45,14 +45,5 @@ func TestSetRealIP(t *testing.T) {
|
||||
// ExpectEqual(t, ri.impl.(*realIP).Recursive, optExpected.Recursive)
|
||||
ExpectDeepEqual(t, ri.impl.(*realIP).realIPOpts, optExpected)
|
||||
})
|
||||
|
||||
// t.Run("request_headers", func(t *testing.T) {
|
||||
// result, err := newMiddlewareTest(ModifyRequest.m, &testArgs{
|
||||
// middlewareOpt: opts,
|
||||
// })
|
||||
// ExpectNoError(t, err.Error())
|
||||
// ExpectEqual(t, result.RequestHeaders.Get("User-Agent"), "go-proxy/v0.5.0")
|
||||
// ExpectTrue(t, slices.Contains(result.RequestHeaders.Values("Accept-Encoding"), "test-value"))
|
||||
// ExpectEqual(t, result.RequestHeaders.Get("Accept"), "")
|
||||
// })
|
||||
// TODO test
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user