about summary refs log tree commit diff
path: root/.gitignore
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2013-10-06 12:14:41 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2014-01-08 14:59:38 +0100
commit407f71cc061564d63b7358dd36a5bfebda05b15a (patch)
tree9691450ae35a95e27fe0ff9d782a84675cad7681 /.gitignore
parentui-log.c: Several simplifications (diff)
downloadcgit-pink-407f71cc061564d63b7358dd36a5bfebda05b15a.tar.gz
cgit-pink-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 <john@keeping.me.uk>
Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions
tle='2013-04-10 14:49:31 +0200'>2013-04-10ui-snapshot.c: Prepend "V" when guessing ref namesLukas Fleischer 2013-04-10t0107: Skip ZIP tests if unzip(1) isn't availableLukas Fleischer 2013-04-10tests/: Do not use `sed -i`Lukas Fleischer 2013-04-10Add branch-sort and repo.branch-sort options.Jason A. Donenfeld 2013-04-10t0109: chain operations with &&John Keeping 2013-04-10cgit.c: Do not restore unset environment variablesLukas Fleischer 2013-04-09t0107: Use `tar -z` for gzip'ed archivesLukas Fleischer