diff options
| author | John Keeping <[email protected]> | 2013-10-06 11:14:41 +0000 |
|---|---|---|
| committer | Jason A. Donenfeld <[email protected]> | 2014-01-08 13:59:38 +0000 |
| commit | 407f71cc061564d63b7358dd36a5bfebda05b15a (patch) | |
| tree | 9691450ae35a95e27fe0ff9d782a84675cad7681 /ui-snapshot.c | |
| parent | ui-log.c: Several simplifications (diff) | |
| download | cgit-407f71cc061564d63b7358dd36a5bfebda05b15a.tar.gz cgit-407f71cc061564d63b7358dd36a5bfebda05b15a.zip | |
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=<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 <[email protected]>
Signed-off-by: Lukas Fleischer <[email protected]>
Diffstat (limited to 'ui-snapshot.c')
0 files changed, 0 insertions, 0 deletions
