Fix: missing `sameSite` when do context.reset() (#3123)

This commit is contained in:
ahuigo 2022-04-17 12:41:59 +08:00 committed by GitHub
parent 888b14ab28
commit 6854212698
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ func (c *Context) reset() {
c.Accepted = nil
c.queryCache = nil
c.formCache = nil
c.sameSite = 0
*c.params = (*c.params)[:0]
*c.skippedNodes = (*c.skippedNodes)[:0]
}