Http method selectable

This commit is contained in:
2023-12-12 23:40:12 +01:00
parent 1b8dc5de5f
commit 3f76813e80
5 changed files with 24 additions and 25 deletions

View File

@@ -79,7 +79,7 @@ public class News
if (!(new File(filePath)).exists() || Settings.lastNewsPolltime == Settings.default_lastNewsPolltime || now.getTimeInMillis() >= Settings.lastNewsPolltime + (long)(Settings.newsDisplayForXDays * 24 * 60 * 60 * 1000))
{
String newsUrl = "https://server47.de/automation/appNews.php";
newsContent = Miscellaneous.downloadURL(newsUrl, null, null);
newsContent = Miscellaneous.downloadURL(newsUrl, null, null, ActivityManageActionTriggerUrl.methodGet);
// Cache content to local storage
if(Miscellaneous.writeStringToFile(filePath, newsContent))