mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-28 20:55:42 +00:00
refactor: rename x-tinyauth-user to remote-user
This commit is contained in:
@@ -237,7 +237,7 @@ func (api *API) SetupRoutes() {
|
||||
}
|
||||
|
||||
// Set the user header
|
||||
c.Header("X-Tinyauth-User", userContext.Username)
|
||||
c.Header("Remote-User", userContext.Username)
|
||||
|
||||
// The user is allowed to access the app
|
||||
c.JSON(200, gin.H{
|
||||
|
||||
Reference in New Issue
Block a user