From 861ffb9181dc811dc5d76fc450b36d3e68850b95 Mon Sep 17 00:00:00 2001
From: Endless Paradox <129645532+EndlessParadox1@users.noreply.github.com>
Date: Tue, 12 Mar 2024 13:51:04 +0800
Subject: [PATCH] docs(middleware): comments to function `BasicAuthForProxy`
 (#3881)

---
 auth.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/auth.go b/auth.go
index cc6c5a7e..2ed33ac0 100644
--- a/auth.go
+++ b/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"