Skip to content

Commit

Permalink
No file name for inline content disposition
Browse files Browse the repository at this point in the history
  • Loading branch information
Aircoookie committed Aug 5, 2022
1 parent 5014987 commit 580743f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
6 changes: 3 additions & 3 deletions src/WebResponses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 580743f

Please sign in to comment.