From c154cddbb33f71b9388db32be562b3fb7c616cdb Mon Sep 17 00:00:00 2001 From: lumapu Date: Fri, 31 May 2024 00:13:15 +0200 Subject: [PATCH] 0.8.123 * add environment name to filename of coredump --- src/CHANGES.md | 1 + src/web/RestApi.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/CHANGES.md b/src/CHANGES.md index bfd2979f..af3ce543 100644 --- a/src/CHANGES.md +++ b/src/CHANGES.md @@ -9,6 +9,7 @@ * add total power to index page (if multiple inverters are configured) * show device name in html title #1639 * update AsyncWebserver library to `3.2.2` +* add environment name to filename of coredump ## 0.8.122 - 2024-05-23 * add button for donwloading coredump (ESP32 variants only) diff --git a/src/web/RestApi.h b/src/web/RestApi.h index 3006345e..e7f23055 100644 --- a/src/web/RestApi.h +++ b/src/web/RestApi.h @@ -369,6 +369,7 @@ class RestApi { String filename = ah::getDateTimeStrFile(gTimezone.toLocal(mApp->getTimestamp())); filename += "_v" + String(mApp->getVersion()); + filename += "_" + String(ENV_NAME); response->addHeader("Content-Description", "File Transfer"); response->addHeader("Content-Disposition", "attachment; filename=" + filename + "_coredump.bin");