mirror of
https://github.com/lxsang/ant-http
synced 2024-11-17 17:08:20 +01:00
fix
This commit is contained in:
parent
d5c4461d34
commit
909d1f10e3
BIN
dist/antd-1.0.4b.tar.gz
vendored
BIN
dist/antd-1.0.4b.tar.gz
vendored
Binary file not shown.
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user