working commit

This commit is contained in:
2026-02-11 12:53:31 +02:00
parent 517c518df2
commit 6fe7f7c15e
12 changed files with 392 additions and 186 deletions
+5
View File
@@ -16,6 +16,11 @@ import (
"strings"
)
func EncodeBasicAuth(username, password string) string {
auth := username + ":" + password
return "Basic " + base64.StdEncoding.EncodeToString([]byte(auth))
}
func ParseBasicAuth(basicFields string) (string, string, error) {
var err error
var username string