Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 288d1ae

Browse files
Merge branch 'ishanray-patch-1' into develop
2 parents 00b10c3 + 6b9311c commit 288d1ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ func main() {
590590
// /admin/secrets endpoint
591591
// hit "localhost:8080/admin/secrets
592592
authorized.GET("/secrets", func(c *gin.Context) {
593-
// get user, it was setted by the BasicAuth middleware
593+
// get user, it was set by the BasicAuth middleware
594594
user := c.MustGet(gin.AuthUserKey).(string)
595595
if secret, ok := secrets[user]; ok {
596596
c.JSON(http.StatusOK, gin.H{"user": user, "secret": secret})

0 commit comments

Comments
 (0)