func validateAllowedPathPrefix()

in proxy/lib/proxy/options.go [195:202]


func validateAllowedPathPrefix(ss []string) error {
	for _, s := range ss {
		if !strings.HasPrefix(s, "/") {
			return fmt.Errorf("must begin with '/': %q", s)
		}
	}
	return nil
}