diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2019-12-04 17:24:20 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2019-12-04 17:24:20 +0300 |
commit | 7bf4ef931b5d4007f12a19939b819a4d8fb31802 (patch) | |
tree | 50a4dbe8023cf254116f1b6f2682c8222ffc2117 /src | |
parent | 928a0a6ab06a345e6cb7485997f4902757aeb4e5 (diff) | |
download | magi-7bf4ef931b5d4007f12a19939b819a4d8fb31802.tar magi-7bf4ef931b5d4007f12a19939b819a4d8fb31802.tar.xz magi-7bf4ef931b5d4007f12a19939b819a4d8fb31802.zip |
[magi] fix
Diffstat (limited to 'src')
-rw-r--r-- | src/cgi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); |