Skip to content

Commit 580743f

Browse files
committed
No file name for inline content disposition
1 parent 5014987 commit 580743f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"type": "git",
1313
"url": "https://github.com/me-no-dev/ESPAsyncWebServer.git"
1414
},
15-
"version": "2.0.4",
15+
"version": "2.0.5",
1616
"license": "LGPL-3.0",
1717
"frameworks": "arduino",
1818
"platforms": ["espressif8266", "espressif32"],

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESP Async WebServer
2-
version=2.0.4
2+
version=2.0.5
33
author=Me-No-Dev
44
maintainer=Me-No-Dev
55
sentence=Async Web Server for ESP8266 and ESP31B (Aircoookie fork)

src/WebResponses.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,8 @@ AsyncFileResponse::AsyncFileResponse(FS &fs, const String& path, const String& c
529529
// set filename and force download
530530
snprintf(buf, sizeof (buf), "attachment; filename=\"%s\"", filename);
531531
} else {
532-
// set filename and force rendering
533-
snprintf(buf, sizeof (buf), "inline; filename=\"%s\"", filename);
532+
// force rendering
533+
snprintf(buf, sizeof (buf), "inline");
534534
}
535535
addHeader("Content-Disposition", buf);
536536
}
@@ -561,7 +561,7 @@ AsyncFileResponse::AsyncFileResponse(File content, const String& path, const Str
561561
if(download) {
562562
snprintf(buf, sizeof (buf), "attachment; filename=\"%s\"", filename);
563563
} else {
564-
snprintf(buf, sizeof (buf), "inline; filename=\"%s\"", filename);
564+
snprintf(buf, sizeof (buf), "inline");
565565
}
566566
addHeader("Content-Disposition", buf);
567567
}

0 commit comments

Comments
 (0)