feat: add authn-basic layer
This commit is contained in:
11
internal/proxy/director/layer/authn/basic/util.go
Normal file
11
internal/proxy/director/layer/authn/basic/util.go
Normal file
@ -0,0 +1,11 @@
|
||||
package basic
|
||||
|
||||
func stripNonASCII(s string) string {
|
||||
rs := make([]rune, 0, len(s))
|
||||
for _, r := range s {
|
||||
if r <= 127 {
|
||||
rs = append(rs, r)
|
||||
}
|
||||
}
|
||||
return string(rs)
|
||||
}
|
Reference in New Issue
Block a user