mirror of https://github.com/gin-gonic/gin.git
fixed Value do not respect the context.WithValue contract
This commit is contained in:
parent
f05f966a08
commit
eecc9c2a50
|
@ -44,9 +44,7 @@ const BodyBytesKey = "_gin-gonic/gin/bodybyteskey"
|
|||
// ContextKey is the key that a Context returns itself for.
|
||||
const ContextKey = "_gin-gonic/gin/contextkey"
|
||||
|
||||
type ContextKeyType int
|
||||
|
||||
const ContextRequestKey ContextKeyType = 0
|
||||
const ContextRequestKey = "_gin-gonic/gin/contextrequestkey"
|
||||
|
||||
// abortIndex represents a typical value used in abort functions.
|
||||
const abortIndex int8 = math.MaxInt8 >> 1
|
||||
|
|
Loading…
Reference in New Issue