summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_refund.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-05-17 16:30:37 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2019-05-17 16:30:37 +0200
commit69f1863d899f93a380fbe6be7a73a6467b2a61c3 (patch)
treea85411bec96b5061966415c052aae0b019854e8d /src/lib/exchange_api_refund.c
parent95933156a6d477460a20225209f556208702d55e (diff)
downloadexchange-69f1863d899f93a380fbe6be7a73a6467b2a61c3.tar.gz
exchange-69f1863d899f93a380fbe6be7a73a6467b2a61c3.tar.bz2
exchange-69f1863d899f93a380fbe6be7a73a6467b2a61c3.zip
Compression.
Inclusion of 'content-encoding: deflate' header now (really) happens per request, and not "per state" (where any request got this header appended and broke those unaware requests that didn't compress their data.)
Diffstat (limited to 'src/lib/exchange_api_refund.c')
-rw-r--r--src/lib/exchange_api_refund.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/exchange_api_refund.c b/src/lib/exchange_api_refund.c
index 14221317..1fd2c4f0 100644
--- a/src/lib/exchange_api_refund.c
+++ b/src/lib/exchange_api_refund.c
@@ -386,11 +386,11 @@ refund_obj = json_pack ("{s:o, s:o," /* amount/fee */
"URL for refund: `%s'\n",
rh->url);
ctx = TEAH_handle_to_context (exchange);
- rh->job = GNUNET_CURL_job_add (ctx,
- eh,
- GNUNET_YES,
- &handle_refund_finished,
- rh);
+ rh->job = GNUNET_CURL_job_add2 (ctx,
+ eh,
+ rh->ctx.headers,
+ &handle_refund_finished,
+ rh);
return rh;
}