fix test for '*' accepted encoding

This commit is contained in:
Christian Grothoff 2017-12-10 00:18:48 +01:00
parent 2d658cef65
commit 76769e9429
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 7 additions and 9 deletions

View File

@ -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,

View File

@ -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")] == ',') ||