Update http_server.c

This commit is contained in:
Dany LE 2022-08-21 18:26:34 +02:00 committed by GitHub
parent e6f0588a84
commit 7315ece4dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -423,9 +423,9 @@ void *resolve_request(void *data)
antd_request_t *rq = (antd_request_t *)data; antd_request_t *rq = (antd_request_t *)data;
antd_task_t *task = antd_create_task(NULL, (void *)rq, NULL, rq->client->last_io); antd_task_t *task = antd_create_task(NULL, (void *)rq, NULL, rq->client->last_io);
char *url = (char *)dvalue(rq->request, "RESOURCE_PATH"); char *url = (char *)dvalue(rq->request, "RESOURCE_PATH");
//char *newurl = NULL; char *newurl = NULL;
//char *rqp = NULL; char *rqp = NULL;
//char *oldrqp = NULL; char *oldrqp = NULL;
rq->client->state = ANTD_CLIENT_RESOLVE_REQUEST; rq->client->state = ANTD_CLIENT_RESOLVE_REQUEST;
htdocs(rq, path); htdocs(rq, path);
strcat(path, url); strcat(path, url);