mirror of https://github.com/gin-gonic/gin.git
docs(middleware): comments to function `BasicAuthForProxy` (#3881)
This commit is contained in:
parent
f70dd00b00
commit
861ffb9181
1
auth.go
1
auth.go
|
@ -91,6 +91,7 @@ func authorizationHeader(user, password string) string {
|
|||
return "Basic " + base64.StdEncoding.EncodeToString(bytesconv.StringToBytes(base))
|
||||
}
|
||||
|
||||
// BasicAuthForProxy returns a Basic HTTP Proxy-Authorization middleware.
|
||||
func BasicAuthForProxy(accounts Accounts, realm string) HandlerFunc {
|
||||
if realm == "" {
|
||||
realm = "Proxy Authorization Required"
|
||||
|
|
Loading…
Reference in New Issue