exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit a5d62016f32ab1456db01a54e58d0183aedbf33e
parent 68025fa02da821f8b952f7d4e71021aa265c8f73
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 29 Jun 2026 20:32:22 +0200

restore async scope on OPTIONS

Diffstat:
Msrc/exchange/taler-exchange-httpd.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c @@ -1962,8 +1962,13 @@ handle_mhd_request (void *cls, MHD_HTTP_METHOD_OPTIONS)) && (0 == strcmp ("*", url)) ) - return TALER_MHD_reply_cors_preflight (connection); + { + enum MHD_Result ret; + ret = TALER_MHD_reply_cors_preflight (connection); + GNUNET_async_scope_restore (&old_scope); + return ret; + } if (0 == strcasecmp (method, MHD_HTTP_METHOD_HEAD)) method = MHD_HTTP_METHOD_GET; /* treat HEAD as GET here, MHD will do the rest */