1
0
mirror of https://github.com/lxsang/antd-cgi-plugin synced 2024-12-26 18:08:21 +01:00
This commit is contained in:
lxsang 2019-12-22 17:28:16 +01:00
parent 04ea239200
commit 6ed698d1f8
2 changed files with 2 additions and 3 deletions

5
cgi.c
View File

@ -49,8 +49,7 @@ static void add_vars(list_t *l, char *k, char *v)
if (!v || !l || !k)
return;
char *data = __s("%s=%s", k, v);
list_put_s(l, data);
free(data);
list_put_ptr(l, data);
}
static void write_request_body(antd_request_t *rq, int fd)
@ -208,7 +207,7 @@ void *handle(void *data)
int i = 0;
while (np)
{
envs[i] = np->value.s;
envs[i] = (char*)np->value.ptr;
np = np->next;
i++;
}

BIN
dist/cgi-1.0.0b.tar.gz vendored

Binary file not shown.