summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/labstack/echo/middleware/basic_auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/labstack/echo/middleware/basic_auth.go')
-rw-r--r--vendor/github.com/labstack/echo/middleware/basic_auth.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/vendor/github.com/labstack/echo/middleware/basic_auth.go b/vendor/github.com/labstack/echo/middleware/basic_auth.go
index 6d6a37b4..e6c96324 100644
--- a/vendor/github.com/labstack/echo/middleware/basic_auth.go
+++ b/vendor/github.com/labstack/echo/middleware/basic_auth.go
@@ -93,10 +93,8 @@ func BasicAuthWithConfig(config BasicAuthConfig) echo.MiddlewareFunc {
}
}
- realm := ""
- if config.Realm == defaultRealm {
- realm = defaultRealm
- } else {
+ realm := defaultRealm
+ if config.Realm != defaultRealm {
realm = strconv.Quote(config.Realm)
}