mirror of
https://github.com/square/okhttp.git
synced 2026-01-18 20:40:58 +03:00
Merge pull request #715 from square/jwilson_0418_remove_workaround
Remove workaround for clients.google.com misconfiguration.
This commit is contained in:
@@ -179,10 +179,7 @@ public final class OkHostnameVerifier implements HostnameVerifier {
|
||||
int suffixLength = cn.length() - (asterisk + 1);
|
||||
int suffixStart = hostName.length() - suffixLength;
|
||||
if (hostName.indexOf('.', asterisk) < suffixStart) {
|
||||
// TODO: remove workaround for *.clients.google.com http://b/5426333
|
||||
if (!hostName.endsWith(".clients.google.com")) {
|
||||
return false; // wildcard '*' can't match a '.'
|
||||
}
|
||||
return false; // wildcard '*' can't match a '.'
|
||||
}
|
||||
|
||||
if (!hostName.regionMatches(suffixStart, cn, asterisk + 1, suffixLength)) {
|
||||
|
||||
Reference in New Issue
Block a user