mirror of
https://github.com/fatedier/frp.git
synced 2025-07-26 23:29:58 +00:00
more e2e test cases (#2450)
This commit is contained in:
10
test/e2e/pkg/utils/utils.go
Normal file
10
test/e2e/pkg/utils/utils.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"encoding/base64"
|
||||
)
|
||||
|
||||
func BasicAuth(username, passwd string) string {
|
||||
auth := username + ":" + passwd
|
||||
return "Basic " + base64.StdEncoding.EncodeToString([]byte(auth))
|
||||
}
|
Reference in New Issue
Block a user