diff options
Diffstat (limited to 'internal/api/auth/token.go')
-rw-r--r-- | internal/api/auth/token.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/internal/api/auth/token.go b/internal/api/auth/token.go index 9787e9efc..cab9352fa 100644 --- a/internal/api/auth/token.go +++ b/internal/api/auth/token.go @@ -110,5 +110,11 @@ func (m *Module) TokenPOSTHandler(c *gin.Context) { c.Header("Cache-Control", "no-store") c.Header("Pragma", "no-cache") - c.JSON(http.StatusOK, token) + apiutil.EncodeJSONResponse( + c.Writer, + c.Request, + http.StatusOK, + apiutil.AppJSON, + token, + ) } |