File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,17 @@ func TestGetCertificate_trailingDot(t *testing.T) {
209
209
testGetCertificate (t , man , "example.org" , hello )
210
210
}
211
211
212
+ func TestGetCertificate_mixedcase (t * testing.T ) {
213
+ man := & Manager {Prompt : AcceptTOS }
214
+ defer man .stopRenew ()
215
+
216
+ lowercaseHello := clientHelloInfo ("example.org" , true )
217
+ testGetCertificate (t , man , "example.org" , lowercaseHello )
218
+
219
+ uppercaseHello := clientHelloInfo ("EXAMPLE.ORG" , true )
220
+ testGetCertificate (t , man , "example.org" , uppercaseHello )
221
+ }
222
+
212
223
func TestGetCertificate_ForceRSA (t * testing.T ) {
213
224
man := & Manager {
214
225
Prompt : AcceptTOS ,
@@ -906,7 +917,7 @@ func TestCache(t *testing.T) {
906
917
}
907
918
908
919
func TestHostWhitelist (t * testing.T ) {
909
- policy := HostWhitelist ("example.com" , "example.org " , "*.example.net" )
920
+ policy := HostWhitelist ("example.com" , "EXAMPLE.ORG " , "*.example.net" )
910
921
tt := []struct {
911
922
host string
912
923
allow bool
You can’t perform that action at this time.
0 commit comments