TLS check: lower case

This commit is contained in:
M66B 2022-10-29 14:14:02 +02:00
parent 17bccaaf78
commit 78aa2d03fe
1 changed files with 4 additions and 3 deletions

View File

@ -2444,9 +2444,10 @@ public class MessageHelper {
if (semi > 0)
header = header.substring(0, semi);
if (header.contains("using TLS") ||
header.contains("via HTTP") ||
header.contains("version=TLS")) {
String h = header.toLowerCase(Locale.ROOT);
if (h.contains("using tls") ||
h.contains("via http") ||
h.contains("version=tls")) {
Log.i("--- found TLS");
return true;
}