Diff options
authorChristian Hesse <mail@eworm.de>
committerJason A. Donenfeld <Jason@zx2c4.com>
commit
parent
tree
download
refactor get_mimetype_from_file() to get_mimetype_for_filename()
* handle mimetype within a single function * return allocated memory on success Signed-off-by: Christian Hesse <mail@eworm.de>
-rw-r--r--cgit.h2
-rw-r--r--shared.c65
-rw-r--r--ui-plain.c28
3 files changed, 44 insertions, 51 deletions