Skip to content

Commit b3f1d9e

Browse files
gabyCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent f774c29 commit b3f1d9e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ctx_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2101,6 +2101,9 @@ func Test_Ctx_AutoFormat_XSS_Prevention(t *testing.T) {
21012101
t.Parallel()
21022102
app := New()
21032103
c := app.AcquireCtx(&fasthttp.RequestCtx{})
2104+
t.Cleanup(func() {
2105+
app.ReleaseCtx(c)
2106+
})
21042107

21052108
// Test basic XSS with script tag
21062109
c.Request().Header.Set(HeaderAccept, MIMETextHTML)

0 commit comments

Comments
 (0)