This commit is contained in:
Christian Grothoff 2015-08-14 15:06:26 +02:00
parent c1df2e6283
commit 6173324cd9
2 changed files with 2 additions and 2 deletions

View File

@ -1948,7 +1948,6 @@ run (void *cls,
.details.refresh_melt.melted_coins = melt_coins_1, .details.refresh_melt.melted_coins = melt_coins_1,
.details.refresh_melt.fresh_amounts = melt_fresh_amounts_1 }, .details.refresh_melt.fresh_amounts = melt_fresh_amounts_1 },
#if TEST_REFRESH
/* Complete (successful) melt operation, and withdraw the coins */ /* Complete (successful) melt operation, and withdraw the coins */
{ .oc = OC_REFRESH_REVEAL, { .oc = OC_REFRESH_REVEAL,
@ -1956,6 +1955,7 @@ run (void *cls,
.expected_response_code = MHD_HTTP_OK, .expected_response_code = MHD_HTTP_OK,
.details.refresh_reveal.melt_ref = "refresh-melt-1" }, .details.refresh_reveal.melt_ref = "refresh-melt-1" },
#if TEST_REFRESH
/* Test that /refresh/link works */ /* Test that /refresh/link works */
{ .oc = OC_REFRESH_LINK, { .oc = OC_REFRESH_LINK,

View File

@ -222,7 +222,7 @@ handle_mhd_request (void *cls,
{ "/refresh/reveal", MHD_HTTP_METHOD_POST, "application/json", { "/refresh/reveal", MHD_HTTP_METHOD_POST, "application/json",
NULL, 0, NULL, 0,
&TMH_REFRESH_handler_refresh_melt, MHD_HTTP_OK }, &TMH_REFRESH_handler_refresh_reveal, MHD_HTTP_OK },
{ "/refresh/reveal", NULL, "text/plain", { "/refresh/reveal", NULL, "text/plain",
"Only POST is allowed", 0, "Only POST is allowed", 0,
&TMH_MHD_handler_send_json_pack_error, MHD_HTTP_METHOD_NOT_ALLOWED }, &TMH_MHD_handler_send_json_pack_error, MHD_HTTP_METHOD_NOT_ALLOWED },