1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-24 11:13:06 +01:00

Switch to current webserver version and some small fixes

This commit is contained in:
2025-08-26 17:17:48 +02:00
parent 8e72537286
commit 22e3ca3875
9 changed files with 16 additions and 14 deletions

View File

@@ -27,7 +27,7 @@ void sendEmbeddedFile(String name,String contentType,AsyncWebServerRequest *requ
std::map<String,EmbeddedFile*>::iterator it=embeddedFiles.find(name);
if (it != embeddedFiles.end()){
EmbeddedFile* found=it->second;
AsyncWebServerResponse *response=request->beginResponse_P(200,contentType,found->start,found->len);
AsyncWebServerResponse *response=request->beginResponse(200, contentType, found->start, found->len);
response->addHeader(F("Content-Encoding"), F("gzip"));
request->send(response);
}