Skip to content

Commit f70dd00

Browse files
authored
fix(engine): fix unit test (#3878)
* fix(engine): fix unit test * fix(engine): fix unit test
1 parent ab8042e commit f70dd00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

context_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ func TestContextRenderAndEscapeAttachment(t *testing.T) {
10441044
c.FileAttachment("./gin.go", maliciousFilename)
10451045

10461046
assert.Equal(t, 200, w.Code)
1047-
assert.Contains(t, w.Body.String(), "func New() *Engine {")
1047+
assert.Contains(t, w.Body.String(), "func New(opts ...OptionFunc) *Engine {")
10481048
assert.Equal(t, fmt.Sprintf("attachment; filename=\"%s\"", actualEscapedResponseFilename), w.Header().Get("Content-Disposition"))
10491049
}
10501050

0 commit comments

Comments
 (0)