mirror of
https://github.com/labstack/echo.git
synced 2025-07-05 00:58:47 +02:00
committed by
Vishal Rana
parent
90d675fa2a
commit
f49d166e6f
@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user