diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd_mhd.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_mhd.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/backend/taler-merchant-httpd_mhd.c b/src/backend/taler-merchant-httpd_mhd.c index 7e0a6f34..9debb67a 100644 --- a/src/backend/taler-merchant-httpd_mhd.c +++ b/src/backend/taler-merchant-httpd_mhd.c @@ -108,12 +108,20 @@ TMH_MHD_handler_agpl_redirect (struct TMH_RequestHandler *rh, (void) MHD_add_response_header (response, MHD_HTTP_HEADER_CONTENT_TYPE, rh->mime_type); - MHD_add_response_header (response, - MHD_HTTP_HEADER_LOCATION, - "http://www.git.taler.net/?p=exchange.git"); - ret = MHD_queue_response (connection, - rh->response_code, - response); + if (MHD_NO == + MHD_add_response_header (response, + MHD_HTTP_HEADER_LOCATION, + "http://www.git.taler.net/?p=exchange.git")) + { + GNUNET_break (0); + ret = MHD_NO; + } + else + { + ret = MHD_queue_response (connection, + rh->response_code, + response); + } MHD_destroy_response (response); return ret; } |