summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-08-09 21:29:33 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-08-09 21:29:33 -0400
commitef6fed10b06bef0ba7d9003b594c8e994665229f (patch)
treeec1143ea206e85dc427c90d27cfd0767f47a358f
parentac7d956ad8d233bf25698c2abbf55d9202dfdf67 (diff)
downloadmerchant-ef6fed10b06bef0ba7d9003b594c8e994665229f.tar.gz
merchant-ef6fed10b06bef0ba7d9003b594c8e994665229f.tar.bz2
merchant-ef6fed10b06bef0ba7d9003b594c8e994665229f.zip
ignore timeout in html requests to GET /orders/
-rw-r--r--src/backend/taler-merchant-httpd_get-orders-ID.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_get-orders-ID.c b/src/backend/taler-merchant-httpd_get-orders-ID.c
index afe452a0..fc551a11 100644
--- a/src/backend/taler-merchant-httpd_get-orders-ID.c
+++ b/src/backend/taler-merchant-httpd_get-orders-ID.c
@@ -951,7 +951,8 @@ TMH_get_orders_ID (const struct TMH_RequestHandler *rh,
long_poll_timeout_s = MHD_lookup_connection_value (connection,
MHD_GET_ARGUMENT_KIND,
"timeout");
- if (NULL != long_poll_timeout_s)
+ if ((NULL != long_poll_timeout_s) &&
+ !god->generate_html)
{
unsigned int timeout;