Re: [PATCH 3/3] move shared code to get_mimetype_from_file()

2015-08-15 Thread John Keeping
On Fri, Aug 14, 2015 at 11:16:37PM +0200, Christian Hesse wrote: From: Christian Hesse m...@eworm.de Signed-off-by: Christian Hesse m...@eworm.de --- cgit.h | 2 +- shared.c | 57 + ui-plain.c | 25

Re: [PATCH 2/3] about: send images plain

2015-08-15 Thread John Keeping
On Fri, Aug 14, 2015 at 11:16:36PM +0200, Christian Hesse wrote: From: Christian Hesse m...@eworm.de The about page used to display just fine, but images were broken: The binary image data was embedded in html code. Use cgit_print_plain() to send images in plain mode and make them available

[PATCH 2/3] refactor get_mimetype_from_file() to get_mimetype_from_qrypath()

2015-08-15 Thread Christian Hesse
From: Christian Hesse m...@eworm.de * handle mimetype within a single function + return allocated memory on success Signed-off-by: Christian Hesse m...@eworm.de --- cgit.h | 2 +- shared.c | 65 +++--- ui-plain.c | 29