Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 627c623

Browse files
committed
github login bugfix
1 parent 2652ba5 commit 627c623

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

context/context.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ type echoCtx struct {
1212
}
1313

1414
func (c *echoCtx) Value(key interface{}) interface{} {
15-
return c.ctx.Get(key.(string))
15+
if k, ok := key.(string); ok {
16+
return c.ctx.Get(k)
17+
}
18+
19+
return c.Value(key)
1620
}
1721

1822
func EchoContext(ctx echo.Context) context.Context {

0 commit comments

Comments
 (0)