Never set HTTP headers before invoking libgnunetcurl.
This commit is contained in:
parent
8868952735
commit
e6c1d262a8
@ -303,19 +303,15 @@ put_history_job (struct GNUNET_CURL_Context *ctx,
|
||||
|
||||
hh->authh = TALER_BANK_make_auth_header_ (auth);
|
||||
eh = curl_easy_init ();
|
||||
GNUNET_assert (CURLE_OK ==
|
||||
curl_easy_setopt (eh,
|
||||
CURLOPT_HTTPHEADER,
|
||||
hh->authh));
|
||||
GNUNET_assert (CURLE_OK ==
|
||||
curl_easy_setopt (eh,
|
||||
CURLOPT_URL,
|
||||
hh->request_url));
|
||||
hh->job = GNUNET_CURL_job_add (ctx,
|
||||
eh,
|
||||
GNUNET_NO,
|
||||
&handle_history_finished,
|
||||
hh);
|
||||
hh->job = GNUNET_CURL_job_add2 (ctx,
|
||||
eh,
|
||||
hh->authh,
|
||||
&handle_history_finished,
|
||||
hh);
|
||||
return hh;
|
||||
}
|
||||
|
||||
|
@ -197,10 +197,6 @@ TALER_BANK_reject (struct GNUNET_CURL_Context *ctx,
|
||||
json_dumps (reject_obj,
|
||||
JSON_COMPACT)));
|
||||
json_decref (reject_obj);
|
||||
GNUNET_assert (CURLE_OK ==
|
||||
curl_easy_setopt (eh,
|
||||
CURLOPT_HTTPHEADER,
|
||||
rh->authh));
|
||||
GNUNET_assert (CURLE_OK ==
|
||||
curl_easy_setopt (eh,
|
||||
CURLOPT_URL,
|
||||
@ -213,11 +209,11 @@ TALER_BANK_reject (struct GNUNET_CURL_Context *ctx,
|
||||
curl_easy_setopt (eh,
|
||||
CURLOPT_POSTFIELDSIZE,
|
||||
strlen (rh->json_enc)));
|
||||
rh->job = GNUNET_CURL_job_add (ctx,
|
||||
eh,
|
||||
GNUNET_NO,
|
||||
&handle_reject_finished,
|
||||
rh);
|
||||
rh->job = GNUNET_CURL_job_add2 (ctx,
|
||||
eh,
|
||||
rh->authh,
|
||||
&handle_reject_finished,
|
||||
rh);
|
||||
return rh;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user