1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Revert "DeepL: URI"

This reverts commit f14c44c0a2.
This commit is contained in:
M66B 2024-07-21 07:07:45 +02:00
parent f14c44c0a2
commit 0cec24ec40

View file

@ -337,8 +337,6 @@ public class DeepL {
} }
private static String getBaseUri(String key) { private static String getBaseUri(String key) {
if (key != null && key.startsWith("https://"))
return key;
String domain = (key != null && key.endsWith(":fx") ? "api-free.deepl.com" : "api.deepl.com"); String domain = (key != null && key.endsWith(":fx") ? "api-free.deepl.com" : "api.deepl.com");
return "https://" + domain + "/v2/"; return "https://" + domain + "/v2/";
} }