feat(requestid): put the request id to the response
This commit is contained in:
@ -23,5 +23,7 @@ func RequestID() gin.HandlerFunc {
|
||||
|
||||
rid = uuid.NewString()
|
||||
ctx.Set(requestID, rid)
|
||||
ctx.Writer.Header().Add(requestID, rid)
|
||||
ctx.Next()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user