We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 649cfbf commit bfbfdbdCopy full SHA for bfbfdbd
1 file changed
middleware/hostauthorization/hostauthorization.go
@@ -73,7 +73,7 @@ func validateHostLength(host string) {
73
if strings.IndexByte(host, ':') >= 0 {
74
return
75
}
76
- for _, label := range strings.Split(host, ".") {
+ for label := range strings.SplitSeq(host, ".") {
77
if len(label) > maxLabelLength {
78
panic(fmt.Sprintf("hostauthorization: host %q has label %q exceeding RFC 1035 limit of %d characters (%d chars)",
79
host, label, maxLabelLength, len(label)))
0 commit comments