From 611a43963a4703fc7d8920499de707a40114a70b Mon Sep 17 00:00:00 2001 From: Mygod Date: Thu, 2 Nov 2023 14:57:39 -0400 Subject: [PATCH] Fix encoded len --- common_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common_test.go b/common_test.go index 313691f..4300b5c 100644 --- a/common_test.go +++ b/common_test.go @@ -212,7 +212,7 @@ func TestMain(m *testing.M) { }, } - upstreamBuf := make([]byte, base64.StdEncoding.EncodedLen(9)) + upstreamBuf := make([]byte, base64.StdEncoding.EncodedLen(25)) base64.StdEncoding.Encode(upstreamBuf, []byte("upstreamtest:upstreampass")) caddyHTTPForwardProxyAuth = caddyTestServer{