fixed gaffe in post handling
git-svn-id: svn://svn.berlios.de/openocd/trunk@1254 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
0fc19255c3
commit
ff2cb7714f
|
@ -175,9 +175,13 @@ httpd_Jim_Command_formfetch(Jim_Interp *interp,
|
||||||
int retcode = Jim_Eval_Named(interp, script, "httpd.c", __LINE__ );
|
int retcode = Jim_Eval_Named(interp, script, "httpd.c", __LINE__ );
|
||||||
free((void *) script);
|
free((void *) script);
|
||||||
if (retcode != JIM_OK)
|
if (retcode != JIM_OK)
|
||||||
return retcode;
|
{
|
||||||
|
Jim_SetResult(interp, Jim_NewEmptyStringObj(interp));
|
||||||
|
} else
|
||||||
|
{
|
||||||
Jim_SetResult(interp, Jim_GetResult(interp));
|
Jim_SetResult(interp, Jim_GetResult(interp));
|
||||||
|
}
|
||||||
|
|
||||||
return JIM_OK;
|
return JIM_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -292,8 +296,7 @@ static int ahc_echo(void * cls, struct MHD_Connection * connection,
|
||||||
r = (struct httpd_request *) *ptr;
|
r = (struct httpd_request *) *ptr;
|
||||||
|
|
||||||
r->post = post;
|
r->post = post;
|
||||||
|
Jim_SetVariableStr(interp, "httppostdata", Jim_NewDictObj(interp, NULL, 0));
|
||||||
// r->dict = Jim_NewDictObj(interp, NULL, 0);
|
|
||||||
|
|
||||||
/* fill in url query strings in dictonary */
|
/* fill in url query strings in dictonary */
|
||||||
MHD_get_connection_values(connection, MHD_GET_ARGUMENT_KIND,
|
MHD_get_connection_values(connection, MHD_GET_ARGUMENT_KIND,
|
||||||
|
@ -327,7 +330,6 @@ static int ahc_echo(void * cls, struct MHD_Connection * connection,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* hand over to request who will be using it. */
|
/* hand over to request who will be using it. */
|
||||||
//Jim_SetGlobalVariableStr(interp, "httppostdata", Jim_GetVariableStr(interp, "httppostdata", 0));
|
|
||||||
// r->dict = NULL;
|
// r->dict = NULL;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue