added ?download file serve query param support to force file download

This commit is contained in:
Gani Georgiev
2023-07-20 15:04:26 +03:00
parent 7e0a4e61b4
commit 50d7df45eb
3 changed files with 42 additions and 3 deletions
+2
View File
@@ -87,6 +87,8 @@
- **!** renamed `models.RequestData` to `models.RequestInfo` and soft-deprecated `apis.RequestData(c)` to `apis.RequestInfo(c)` to avoid the stuttering with the `Data` field.
_The old `apis.RequestData()` method still works to minimize the breaking changes but it is recommended to replace it with `apis.RequestInfo(c)`._
- Added `?download` file query parameter option to instruct the browser to always download a file and not show a preview.
## v0.16.10