aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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");