[PATCH 3/3] ui-summary: send images plain for about page

2015-08-16 Thread Christian Hesse
From: Christian Hesse 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 on about page. Signed-off-by: Christian Hesse --- ui-summary.c | 17 +

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

2015-08-16 Thread Christian Hesse
From: Christian Hesse * handle mimetype within a single function * return allocated memory on success Signed-off-by: Christian Hesse --- cgit.h | 2 +- shared.c | 65 +++--- ui-plain.c | 28 ++- 3 files chan

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

2015-08-16 Thread Christian Hesse
John Keeping on Sun, 2015/08/16 13:19: > On Sat, Aug 15, 2015 at 10:08:22PM +0200, Christian Hesse wrote: > > From: Christian Hesse > > > > * handle mimetype within a single function > > + return allocated memory on success > > > > Signed-off-by: Christian Hesse > > --- > > cgit.h | 2 +-

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

2015-08-16 Thread John Keeping
On Sat, Aug 15, 2015 at 10:08:22PM +0200, Christian Hesse wrote: > From: Christian Hesse > > * handle mimetype within a single function > + return allocated memory on success > > Signed-off-by: Christian Hesse > --- > cgit.h | 2 +- > shared.c | 65 > +++