Merge branch 'ishanray-patch-1' into develop

This commit is contained in:
Javier Provecho Fernandez 2016-03-05 23:11:51 +01:00
commit 288d1ae13c
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ func main() {
// /admin/secrets endpoint
// hit "localhost:8080/admin/secrets
authorized.GET("/secrets", func(c *gin.Context) {
// get user, it was setted by the BasicAuth middleware
// get user, it was set by the BasicAuth middleware
user := c.MustGet(gin.AuthUserKey).(string)
if secret, ok := secrets[user]; ok {
c.JSON(http.StatusOK, gin.H{"user": user, "secret": secret})