[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 02/02: fix test for '*' accepted encoding
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 02/02: fix test for '*' accepted encoding |
Date: |
Sun, 10 Dec 2017 00:18:52 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit 76769e9429a75e40e6b47d6c7b2eddc1ca5fc7d5
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Dec 10 00:18:48 2017 +0100
fix test for '*' accepted encoding
---
src/auditor/taler-auditor.c | 8 +++-----
src/exchange/taler-exchange-httpd_responses.c | 8 ++++----
2 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/src/auditor/taler-auditor.c b/src/auditor/taler-auditor.c
index 7ccb9e8..870a81a 100644
--- a/src/auditor/taler-auditor.c
+++ b/src/auditor/taler-auditor.c
@@ -2557,11 +2557,9 @@ analyze_aggregations (void *cls)
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Analyzing aggregations\n");
- ac.qs = GNUNET_DB_STATUS_SUCCESS_ONE_RESULT;
- ac.wire_head = NULL;
- ac.wire_tail = NULL;
- ac.fee_head = NULL;
- ac.fee_tail = NULL;
+ memset (&ac,
+ 0,
+ sizeof (ac));
qsx = adb->get_wire_fee_summary (adb->cls,
asession,
&master_pub,
diff --git a/src/exchange/taler-exchange-httpd_responses.c
b/src/exchange/taler-exchange-httpd_responses.c
index 64e7a93..8965e2a 100644
--- a/src/exchange/taler-exchange-httpd_responses.c
+++ b/src/exchange/taler-exchange-httpd_responses.c
@@ -70,15 +70,15 @@ TEH_RESPONSE_can_compress (struct MHD_Connection
*connection)
MHD_HTTP_HEADER_ACCEPT_ENCODING);
if (NULL == ae)
return MHD_NO;
+ if (0 == strcmp (ae,
+ "*"))
+ return MHD_YES;
de = strstr (ae,
"deflate");
if (NULL == de)
return MHD_NO;
- if (0 == strcmp (de,
- "*"))
- return MHD_YES;
if ( ( (de == ae) ||
- ( de[-1] == ',') ||
+ (de[-1] == ',') ||
(de[-1] == ' ') ) &&
( (de[strlen ("deflate")] == '\0') ||
(de[strlen ("deflate")] == ',') ||
--
To stop receiving notification emails like this one, please contact
address@hidden