mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-16 17:22:12 +08:00
parse token
This commit is contained in:
parent
b8ef0b3513
commit
460cf8d8ba
@ -75,7 +75,7 @@ func GinParseToken(rdb redis.UniversalClient) gin.HandlerFunc {
|
||||
case http.MethodPost:
|
||||
token := c.Request.Header.Get(constant.Token)
|
||||
if token == "" {
|
||||
apiresp.GinError(c, errs.ErrArgs.Wrap())
|
||||
apiresp.GinError(c, errs.ErrArgs.Wrap("header must have token"))
|
||||
c.Abort()
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user