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>
这个提交包含在:
2
cgit.h
2
cgit.h
@@ -391,6 +391,6 @@ extern int readfile(const char *path, char **buf, size_t *size);
|
||||
|
||||
extern char *expand_macros(const char *txt);
|
||||
|
||||
extern char *get_mimetype_from_file(const char *filename, const char *ext);
|
||||
extern char *get_mimetype_for_filename(const char *filename);
|
||||
|
||||
#endif /* CGIT_H */
|
||||
|
在新工单中引用
屏蔽一个用户