Fix encoded len

This commit is contained in:
Mygod 2023-11-02 14:57:39 -04:00
parent cd93f0ed51
commit 611a43963a

View file

@ -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{