Skip to content

Commit

Permalink
docs(middleware): comments to function BasicAuthForProxy (#3881)
Browse files Browse the repository at this point in the history
  • Loading branch information
EndlessParadox1 committed Mar 12, 2024
1 parent f70dd00 commit 861ffb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 861ffb9

Please sign in to comment.