This commit is contained in:
lxsang 2020-01-01 22:10:05 +01:00
parent d5c4461d34
commit 909d1f10e3
2 changed files with 5 additions and 1 deletions

Binary file not shown.

View File

@ -517,9 +517,13 @@ void *resolve_request(void *data)
if (strcmp(mime_type, "application/octet-stream") == 0)
{
char *ex = ext(path);
char *h = dvalue(server_config.handlers, ex);
//printf("Path: %s\n", path);
char *h = NULL;
if (ex)
{
h = dvalue(server_config.handlers, ex);
free(ex);
}
if (h)
{
//sprintf(path,"/%s%s",h,url);