aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-03-16 01:49:18 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-03-16 01:49:18 +0100
commit27b8a6971861cb4ead0eb07965bb4873f591ad24 (patch)
tree1144acabc28d22f1e76f08322e5393c68dfccda5 /doc
parent7e2e37d40ac130079570a4f8111d4d5ca5fc9344 (diff)
downloadslcl-27b8a6971861cb4ead0eb07965bb4873f591ad24.tar.gz
page.c: Set Content-Disposition when serving files
So far, slcl used the default browser behaviour (i.e., Content-Disposition: inline), which means files were typically shown on the web browser itself. However, this caused two issues: - Users would have to right-click -> "Save Link As..." to download a file, which might be inconvenient for some users. - The original file name would not be retrieved for publicly shared files. Now, file download is always requested to the browser, and the original file path is retrieved via readlink(2).
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions