From: John Keeping Date: Sun, 6 Oct 2013 11:14:41 +0000 (+0100) Subject: plain: don't append charset for binary MIME types X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/407f71cc061564d63b7358dd36a5bfebda05b15a?ds=inline;hp=407f71cc061564d63b7358dd36a5bfebda05b15a plain: don't append charset for binary MIME types When outputting the Content-Type HTTP header we print the MIME type and then append "; charset=" if the charset variable is non-null. We don't want a charset when we have selected "application/octet-stream" or when the user has specified a custom MIME type, since they may have specified their own charset. To avoid this, make sure we set the page's charset to NULL in ui-plain before we generate the HTTP headers. Signed-off-by: John Keeping Signed-off-by: Lukas Fleischer ---