RandomSec/main
Tom Morris 5f368bc56d
Use ContentDisposition instead of ContentType to control download (#2722)
* Use ContentDisposition instead of ContentType to control download

Fixes #1197. Previously we were using a funky ContentType to attempt
to force a file download rather than display in browser, but this
conflicted with attempts to save UTF-8 which was outside the Basic
Multilingual Plane (BMP).

By switching to ContentDisposition: attachment, which has been
the preferred method for a number of years, we can avoid this conflict.

As part of this, switch to using the "preview" param consistently
to control preview vs download rather than the content type.

* Switch content type to text/plain

Now that we don't need to use ContentType to control download
behavior, we can use something more reasonable.
2020-06-16 15:46:07 +02:00
..
IDEs/eclipse Thad no longer supports Netbeans config (#2466) 2020-03-27 09:30:30 +01:00
src Use ContentDisposition instead of ContentType to control download (#2722) 2020-06-16 15:46:07 +02:00
tests Use Apache HTTP Commons for Fetch URL (#2692) 2020-06-16 09:38:06 +02:00
webapp Use ContentDisposition instead of ContentType to control download (#2722) 2020-06-16 15:46:07 +02:00
pom.xml Bump joda-time from 2.9.9 to 2.10.6 (#2738) 2020-06-16 11:45:27 +02:00