fixed Value do not respect the context.WithValue contract

This commit is contained in:
holgerhuang 2024-10-14 20:11:36 +08:00
parent f05f966a08
commit eecc9c2a50
1 changed files with 1 additions and 3 deletions

View File

@ -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