Skip to content

Commit 5fb038a

Browse files
committed
Avoid copying DefaultCtx in integration custom context
1 parent 810fe69 commit 5fb038a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app_integration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ import (
1818
)
1919

2020
type integrationCustomCtx struct {
21-
fiber.DefaultCtx
21+
*fiber.DefaultCtx
2222
}
2323

2424
func newIntegrationCustomCtx(app *fiber.App) fiber.CustomCtx {
25-
return &integrationCustomCtx{DefaultCtx: *fiber.NewDefaultCtx(app)}
25+
return &integrationCustomCtx{DefaultCtx: fiber.NewDefaultCtx(app)}
2626
}
2727

2828
func performOversizedRequest(t *testing.T, app *fiber.App, configure func(req *fasthttp.Request)) *fasthttp.Response {

0 commit comments

Comments
 (0)