Fix variable name

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
main
Jianhui Zhao 2020-07-02 22:34:33 +08:00
parent 162b8fe4f2
commit 97ab9877a2
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
#include "mimetypes.h" #include "mimetypes.h"
static const struct mimetype uh_mime_types[] = { static const struct mimetype mime_types[] = {
{ "txt", "text/plain" }, { "txt", "text/plain" },
{ "log", "text/plain" }, { "log", "text/plain" },
{ "js", "text/javascript" }, { "js", "text/javascript" },
@ -96,7 +96,7 @@ static const struct mimetype uh_mime_types[] = {
const char *file_mime_lookup(const char *path) const char *file_mime_lookup(const char *path)
{ {
const struct mimetype *m = &uh_mime_types[0]; const struct mimetype *m = &mime_types[0];
const char *e; const char *e;
while (m->extn) { while (m->extn) {