diff --git a/tasmota/include/alpinejs.h b/tasmota/include/alpinejs.h index fe9cd8a01..76d98cf61 100644 --- a/tasmota/include/alpinejs.h +++ b/tasmota/include/alpinejs.h @@ -11,7 +11,7 @@ // `xxd -i alpine.min.js.gz > tas_alpine.h` -static const char alpine_min_js_gz[] = { +static const char PROGMEM alpine_min_js_gz[] = { 0x1f, 0x8b, 0x08, 0x08, 0xe8, 0x91, 0xd9, 0x67, 0x02, 0x03, 0x61, 0x6c, 0x70, 0x69, 0x6e, 0x65, 0x2e, 0x6d, 0x69, 0x6e, 0x2e, 0x6a, 0x73, 0x00, 0xd5, 0x3d, 0x6b, 0x77, 0xdb, 0xb6, 0x92, 0xdf, 0xf7, 0x57, 0x48, 0x5c, diff --git a/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino b/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino index ceb95dfa5..49ca5cbd5 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino @@ -1953,7 +1953,7 @@ void HandleAlpinejsRequest(void) { Webserver->sendHeader(F("Vary"), F("Accept-Encoding")); Webserver->setContentLength(sizeof(alpine_min_js_gz)); Webserver->send(200, PSTR("text/javascript"), ""); - Webserver->sendContent(alpine_min_js_gz, sizeof(alpine_min_js_gz)); + Webserver->sendContent_P(alpine_min_js_gz, sizeof(alpine_min_js_gz)); Webserver->client().stop(); } #endif // USE_ALPINEJS