aboutsummaryrefslogtreecommitdiff
path: root/src/backend/anastasis-httpd_truth_upload.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/anastasis-httpd_truth_upload.c')
-rw-r--r--src/backend/anastasis-httpd_truth_upload.c25
1 files changed, 10 insertions, 15 deletions
diff --git a/src/backend/anastasis-httpd_truth_upload.c b/src/backend/anastasis-httpd_truth_upload.c
index 0fb9017..0781f73 100644
--- a/src/backend/anastasis-httpd_truth_upload.c
+++ b/src/backend/anastasis-httpd_truth_upload.c
@@ -670,22 +670,17 @@ AH_handler_truth_post (
670 } 670 }
671 671
672 /* check method is supported */ 672 /* check method is supported */
673 if ( (0 != strcmp ("question",
674 type)) &&
675 (NULL ==
676 ANASTASIS_authorization_plugin_load (type,
677 AH_cfg)) )
673 { 678 {
674 struct TALER_Amount dummy; 679 GNUNET_JSON_parse_free (spec);
675 680 return TALER_MHD_reply_with_error (connection,
676 if ( (0 != strcmp ("question", 681 MHD_HTTP_BAD_REQUEST,
677 type)) && 682 TALER_EC_ANASTASIS_TRUTH_UPLOAD_METHOD_NOT_SUPPORTED,
678 (NULL == 683 type);
679 ANASTASIS_authorization_plugin_load (type,
680 AH_cfg,
681 &dummy)) )
682 {
683 GNUNET_JSON_parse_free (spec);
684 return TALER_MHD_reply_with_error (connection,
685 MHD_HTTP_BAD_REQUEST,
686 TALER_EC_ANASTASIS_TRUTH_UPLOAD_METHOD_NOT_SUPPORTED,
687 type);
688 }
689 } 684 }
690 685
691 if (storage_years > ANASTASIS_MAX_YEARS_STORAGE) 686 if (storage_years > ANASTASIS_MAX_YEARS_STORAGE)