]> Cypherpunks repositories - gostls13.git/commit
net: use case-insensitive host string comparison in TestLookup*
authorMeng Zhuo <mengzhuo1203@gmail.com>
Sat, 12 Oct 2019 08:27:15 +0000 (16:27 +0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 12 Oct 2019 14:04:38 +0000 (14:04 +0000)
commit592d304bdc293a03d80ad86ad4b98b02353bfd64
tree2166152ce645eb929aeb215d943e8e71f1ab74ab
parent3c56eb4083f2aca21804c341ca5f09032fe82989
net: use case-insensitive host string comparison in TestLookup*

Some nameservers alter the case of records as they return, e.g
.google.COM or .Google.com.
However according to RFC4343, DNS name should be treated in case insensitive fashion.
This CL will fix case sensitive testcases.

Fixes #34781

Change-Id: I5f9f6a41ddc1c61993e8d1f934ef0febddc3adc1
Reviewed-on: https://go-review.googlesource.com/c/go/+/200277
Reviewed-by: Andrei Tudor Călin <mail@acln.ro>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/lookup_test.go