[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 01/02: Remove non-working curl config
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 01/02: Remove non-working curl config |
Date: |
Fri, 10 May 2019 20:12:10 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository exchange.
commit b8a718f8595f99b1c7241b311e80a180e8958ffd
Author: Florian Dold <address@hidden>
AuthorDate: Fri May 10 18:44:44 2019 +0200
Remove non-working curl config
These headers are overwritten by GNUNET's curl context, setting them
here is useless.
---
src/lib/auditor_api_curl_defaults.c | 23 +++--------------------
1 file changed, 3 insertions(+), 20 deletions(-)
diff --git a/src/lib/auditor_api_curl_defaults.c
b/src/lib/auditor_api_curl_defaults.c
index 507ae0e5..7beb592e 100644
--- a/src/lib/auditor_api_curl_defaults.c
+++ b/src/lib/auditor_api_curl_defaults.c
@@ -33,6 +33,9 @@ CURL *
TAL_curl_easy_get (const char *url)
{
CURL *eh;
+ struct GNUNET_AsyncScopeSave scope;
+
+ GNUNET_async_scope_get (&scope);
eh = curl_easy_init ();
@@ -48,26 +51,6 @@ TAL_curl_easy_get (const char *url)
curl_easy_setopt (eh,
CURLOPT_TCP_FASTOPEN,
1L));
- {
- /* Unfortunately libcurl needs chunk to be alive until after
- curl_easy_perform. To avoid manual cleanup, we keep
- one static list here. */
- static struct curl_slist *chunk = NULL;
- if (NULL == chunk)
- {
- /* With POST requests, we do not want to wait for the
- "100 Continue" response, as our request bodies are usually
- small and directy sending them saves us a round trip.
-
- Clearing the expect header like this disables libcurl's
- default processing of the header.
-
- Disabling this header is safe for other HTTP methods, thus
- we don't distinguish further before setting it. */
- chunk = curl_slist_append (chunk, "Expect:");
- }
- GNUNET_assert (CURLE_OK == curl_easy_setopt (eh, CURLOPT_HTTPHEADER,
chunk));
- }
return eh;
}
--
To stop receiving notification emails like this one, please contact
address@hidden