mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 19:25:34 +00:00
TLS check: lower case
This commit is contained in:
parent
17bccaaf78
commit
78aa2d03fe
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue