diff options
Diffstat (limited to 'src/testing/testing_api_cmd_get_product.c')
-rw-r--r-- | src/testing/testing_api_cmd_get_product.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/testing/testing_api_cmd_get_product.c b/src/testing/testing_api_cmd_get_product.c index 88050a42..d1f844b0 100644 --- a/src/testing/testing_api_cmd_get_product.c +++ b/src/testing/testing_api_cmd_get_product.c @@ -109,10 +109,6 @@ get_product_cb (void *cls, struct GetProductState *gis = cls; const struct TALER_TESTING_Command *product_cmd; - product_cmd = TALER_TESTING_interpreter_lookup_command ( - gis->is, - gis->product_reference); - gis->igh = NULL; if (gis->http_status != hr->http_status) { @@ -129,6 +125,10 @@ get_product_cb (void *cls, case MHD_HTTP_OK: { const char *expected_description; + + product_cmd = TALER_TESTING_interpreter_lookup_command ( + gis->is, + gis->product_reference); if (GNUNET_OK != TALER_TESTING_get_trait_string (product_cmd, 0, @@ -276,6 +276,10 @@ get_product_cb (void *cls, } } break; + case MHD_HTTP_UNAUTHORIZED: + break; + case MHD_HTTP_NOT_FOUND: + break; default: GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Unhandled HTTP status.\n"); |