fix(route): Add fullPath in context copy (#3784)

* fix: Add fullPath in context copy

* Update context.go

---------

Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Karthik Reddy Puli
2024-03-06 14:16:53 +05:30
committed by GitHub
parent f75144a356
commit 09f8224593
2 changed files with 3 additions and 0 deletions

View File

@ -120,6 +120,7 @@ func (c *Context) Copy() *Context {
cp.Writer = &cp.writermem
cp.index = abortIndex
cp.handlers = nil
cp.fullPath = c.fullPath
cKeys := c.Keys
cp.Keys = make(map[string]any, len(cKeys))