summaryrefslogtreecommitdiff
path: root/src/auditor/taler-auditor-httpd_emergency-get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditor/taler-auditor-httpd_emergency-get.c')
-rw-r--r--src/auditor/taler-auditor-httpd_emergency-get.c42
1 files changed, 6 insertions, 36 deletions
diff --git a/src/auditor/taler-auditor-httpd_emergency-get.c b/src/auditor/taler-auditor-httpd_emergency-get.c
index 95648c793..a2bf555e7 100644
--- a/src/auditor/taler-auditor-httpd_emergency-get.c
+++ b/src/auditor/taler-auditor-httpd_emergency-get.c
@@ -126,43 +126,13 @@ TAH_EMERGENCY_handler_get (struct TAH_RequestHandler *rh,
&offset);
bool return_suppressed = false;
- limit = 0;
-
- struct GNUNET_JSON_Specification spec[] = {
- GNUNET_JSON_spec_bool ("return_suppressed", &return_suppressed),
- GNUNET_JSON_spec_end ()
- };
-
-
- // read the input json
- /*json_t *json_in;
+ const char *ret_s = MHD_lookup_connection_value (connection,
+ MHD_GET_ARGUMENT_KIND,
+ "return_suppressed");
+ if (ret_s != NULL && strcmp (ret_s, "true") == 0)
{
- enum GNUNET_GenericReturnValue res;
-
- res = TALER_MHD_parse_post_json (connection,
- connection_cls,
- upload_data,
- upload_data_size,
- &json_in);
- if (GNUNET_SYSERR == res)
- return MHD_NO;
- if ((GNUNET_NO == res) ||
- (NULL == json_in))
- return MHD_YES;
- res = TALER_MHD_parse_json_data (connection,
- json_in,
- spec);
- if (GNUNET_SYSERR == res)
- {
- json_decref (json_in);
- return MHD_NO;
- }
- if (GNUNET_NO == res)
- {
- json_decref (json_in);
- return MHD_YES;
- }
- }*/
+ return_suppressed = true;
+ }
qs = TAH_plugin->get_emergency (
TAH_plugin->cls,