diff --git a/library.json b/library.json index 8bc824ca8..0c26f3cd0 100644 --- a/library.json +++ b/library.json @@ -12,7 +12,7 @@ "type": "git", "url": "https://github.com/me-no-dev/ESPAsyncWebServer.git" }, - "version": "2.0.4", + "version": "2.0.5", "license": "LGPL-3.0", "frameworks": "arduino", "platforms": ["espressif8266", "espressif32"], diff --git a/library.properties b/library.properties index fce518f8c..ed722e46f 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=ESP Async WebServer -version=2.0.4 +version=2.0.5 author=Me-No-Dev maintainer=Me-No-Dev sentence=Async Web Server for ESP8266 and ESP31B (Aircoookie fork) diff --git a/src/WebResponses.cpp b/src/WebResponses.cpp index cca6b5324..ae1b04055 100644 --- a/src/WebResponses.cpp +++ b/src/WebResponses.cpp @@ -529,8 +529,8 @@ AsyncFileResponse::AsyncFileResponse(FS &fs, const String& path, const String& c // set filename and force download snprintf(buf, sizeof (buf), "attachment; filename=\"%s\"", filename); } else { - // set filename and force rendering - snprintf(buf, sizeof (buf), "inline; filename=\"%s\"", filename); + // force rendering + snprintf(buf, sizeof (buf), "inline"); } addHeader("Content-Disposition", buf); } @@ -561,7 +561,7 @@ AsyncFileResponse::AsyncFileResponse(File content, const String& path, const Str if(download) { snprintf(buf, sizeof (buf), "attachment; filename=\"%s\"", filename); } else { - snprintf(buf, sizeof (buf), "inline; filename=\"%s\"", filename); + snprintf(buf, sizeof (buf), "inline"); } addHeader("Content-Disposition", buf); }