Ensure AlpineJS is in PROGMEM (#23264)

This commit is contained in:
s-hadinger 2025-04-07 19:49:19 +02:00 committed by GitHub
parent 215b37bf69
commit 7ddf8abf90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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