mirror of
https://github.com/lxsang/ant-http
synced 2024-12-26 16:58:22 +01:00
fix url_encore bug
This commit is contained in:
parent
03a0a9deea
commit
ae601c2487
@ -250,7 +250,7 @@ void *accept_request(void *data)
|
||||
dput(rq->request, "REQUEST_QUERY", strdup(token));
|
||||
line = token;
|
||||
token = strsep(&line, "?");
|
||||
dput(rq->request, "REQUEST_PATH", strdup(token));
|
||||
dput(rq->request, "REQUEST_PATH", url_decode(token));
|
||||
// decode request
|
||||
// now return the task
|
||||
task->handle = decode_request_header;
|
||||
@ -592,7 +592,7 @@ void *decode_request_header(void *data)
|
||||
memset(buf, 0, sizeof(buf));
|
||||
strcat(buf, url);
|
||||
query = apply_rules(host, buf);
|
||||
dput(rq->request, "RESOURCE_PATH", strdup(buf));
|
||||
dput(rq->request, "RESOURCE_PATH", url_decode(buf));
|
||||
if (query)
|
||||
{
|
||||
decode_url_request(query, request);
|
||||
|
Loading…
Reference in New Issue
Block a user