fix test for '*' accepted encoding
This commit is contained in:
parent
2d658cef65
commit
76769e9429
@ -2557,11 +2557,9 @@ analyze_aggregations (void *cls)
|
|||||||
|
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
|
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
|
||||||
"Analyzing aggregations\n");
|
"Analyzing aggregations\n");
|
||||||
ac.qs = GNUNET_DB_STATUS_SUCCESS_ONE_RESULT;
|
memset (&ac,
|
||||||
ac.wire_head = NULL;
|
0,
|
||||||
ac.wire_tail = NULL;
|
sizeof (ac));
|
||||||
ac.fee_head = NULL;
|
|
||||||
ac.fee_tail = NULL;
|
|
||||||
qsx = adb->get_wire_fee_summary (adb->cls,
|
qsx = adb->get_wire_fee_summary (adb->cls,
|
||||||
asession,
|
asession,
|
||||||
&master_pub,
|
&master_pub,
|
||||||
|
@ -70,13 +70,13 @@ TEH_RESPONSE_can_compress (struct MHD_Connection *connection)
|
|||||||
MHD_HTTP_HEADER_ACCEPT_ENCODING);
|
MHD_HTTP_HEADER_ACCEPT_ENCODING);
|
||||||
if (NULL == ae)
|
if (NULL == ae)
|
||||||
return MHD_NO;
|
return MHD_NO;
|
||||||
|
if (0 == strcmp (ae,
|
||||||
|
"*"))
|
||||||
|
return MHD_YES;
|
||||||
de = strstr (ae,
|
de = strstr (ae,
|
||||||
"deflate");
|
"deflate");
|
||||||
if (NULL == de)
|
if (NULL == de)
|
||||||
return MHD_NO;
|
return MHD_NO;
|
||||||
if (0 == strcmp (de,
|
|
||||||
"*"))
|
|
||||||
return MHD_YES;
|
|
||||||
if ( ( (de == ae) ||
|
if ( ( (de == ae) ||
|
||||||
(de[-1] == ',') ||
|
(de[-1] == ',') ||
|
||||||
(de[-1] == ' ') ) &&
|
(de[-1] == ' ') ) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user