aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/cookiejar/punycode.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/http/cookiejar/punycode.go')
-rw-r--r--src/net/http/cookiejar/punycode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/http/cookiejar/punycode.go b/src/net/http/cookiejar/punycode.go
index ea7ceb5ef3..a9cc666e8c 100644
--- a/src/net/http/cookiejar/punycode.go
+++ b/src/net/http/cookiejar/punycode.go
@@ -37,7 +37,7 @@ func encode(prefix, s string) (string, error) {
delta, n, bias := int32(0), initialN, initialBias
b, remaining := int32(0), int32(0)
for _, r := range s {
- if r < 0x80 {
+ if r < utf8.RuneSelf {
b++
output = append(output, byte(r))
} else {