aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/server.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2020-06-08 12:39:56 -0400
committerRuss Cox <rsc@golang.org>2020-06-08 21:36:04 +0000
commit2cd2ff6f564dce5be0c4fb7f06338ff7af3fc9a9 (patch)
treedd814923cd9b140f8868340a112501f2bda4f1b1 /src/net/http/server.go
parentbddf75d88859b8454f67de32510d8488329d0f2b (diff)
downloadgo-2cd2ff6f564dce5be0c4fb7f06338ff7af3fc9a9.tar.xz
all: avoid awkward wording from CL 236857
CL 236857 removed all uses of whitelist/blacklist, which is great. But it substituted awkward phrasing using allowlist/blocklist, especially as verbs or participles. This CL uses more standard English, like "allow the function" or "blocked functions" instead of "allowlist the function" or "blocklisted functions". Change-Id: I9106a2fdbd62751c4cbda3a77181358a8a6d0f13 Reviewed-on: https://go-review.googlesource.com/c/go/+/236917 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/net/http/server.go')
-rw-r--r--src/net/http/server.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/http/server.go b/src/net/http/server.go
index a75dd1461f..a995a50658 100644
--- a/src/net/http/server.go
+++ b/src/net/http/server.go
@@ -1698,9 +1698,9 @@ func (c *conn) closeWriteAndWait() {
time.Sleep(rstAvoidanceDelay)
}
-// validNextProto reports whether the proto is not a blocklisted ALPN
-// protocol name. Empty and built-in protocol types are blocklisted
-// and can't be overridden with alternate implementations.
+// validNextProto reports whether the proto is a valid ALPN protocol name.
+// Everything is valid except the empty string and built-in protocol types,
+// so that those can't be overridden with alternate implementations.
func validNextProto(proto string) bool {
switch proto {
case "", "http/1.1", "http/1.0":