No part imports config (closes #447) #470

Merged
clawbot merged 3 commits from issue-447-config-above-the-parts into next 2026-11-19 20:14:28 +01:00
Showing only changes of commit b110cfabe8 - Show all commits
+5 -2
View File
@@ -883,8 +883,11 @@ func TestHeaderNameCheckTakesTheRFC9110Characters(t *testing.T) {
want := 'a' <= char && char <= 'z' || 'A' <= char && char <= 'Z' ||
'0' <= char && char <= '9' || strings.IndexByte(marks, char) >= 0
if got := httpguts.ValidHeaderFieldName(string(char)); got != want {
t.Errorf("the name %q is taken: %t, want %t", char, got, want)
// string(char) would be the UTF-8 of U+0080 to U+00FF, two bytes,
// for a byte above 0x7f.
name := string([]byte{char})
if got := httpguts.ValidHeaderFieldName(name); got != want {
t.Errorf("the name %q is taken: %t, want %t", name, got, want)
}
}
}