aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2019-12-04 17:24:20 +0300
committerAleksey Veresov <aleksey@veresov.pro>2019-12-04 17:24:20 +0300
commit7bf4ef931b5d4007f12a19939b819a4d8fb31802 (patch)
tree50a4dbe8023cf254116f1b6f2682c8222ffc2117
parent928a0a6ab06a345e6cb7485997f4902757aeb4e5 (diff)
downloadmagi-7bf4ef931b5d4007f12a19939b819a4d8fb31802.tar
magi-7bf4ef931b5d4007f12a19939b819a4d8fb31802.tar.xz
magi-7bf4ef931b5d4007f12a19939b819a4d8fb31802.zip
[magi] fix
-rw-r--r--src/cgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cgi.c b/src/cgi.c
index 7563613..59e2ef7 100644
--- a/src/cgi.c
+++ b/src/cgi.c
@@ -185,6 +185,8 @@ static int next(void * any)
/* Interfacial CGI Request Handling */
int magi_request_cgi(struct magi_request * request)
{
+ request->files = 0;
+ request->params = 0;
request->url_params = 0;
request->http_params = 0;
request->error = magi_error_none;
@@ -197,8 +199,6 @@ int magi_request_cgi(struct magi_request * request)
int magi_request_resume_cgi(struct magi_request * request)
{
enum magi_error * e = &request->error;
- request->files = 0;
- request->params = 0;
request->error = magi_error_none;
if (request->method && !strcmp(request->method, "post")) {
const char * t = getenv("CONTENT_TYPE");