summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_mhd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-06-05 18:19:59 +0200
committerChristian Grothoff <christian@grothoff.org>2017-06-05 18:19:59 +0200
commitf108a560bf7d755947aac4607bb66c7eb51db801 (patch)
tree89db3dec9a95608f51a85098429271c6349122dd /src/backend/taler-merchant-httpd_mhd.c
parenta3017d9fdc5e9bd218f0a7f3ffd665e2453b58db (diff)
downloadmerchant-f108a560bf7d755947aac4607bb66c7eb51db801.tar.gz
merchant-f108a560bf7d755947aac4607bb66c7eb51db801.tar.bz2
merchant-f108a560bf7d755947aac4607bb66c7eb51db801.zip
Fix some signed/unsigned issues, plus some doxygen typos
Diffstat (limited to 'src/backend/taler-merchant-httpd_mhd.c')
-rw-r--r--src/backend/taler-merchant-httpd_mhd.c20
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;
}