aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_client.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-02-09 23:06:46 +0000
committerChristian Grothoff <christian@grothoff.org>2013-02-09 23:06:46 +0000
commit97373cfa1b4d0f7e26a14f35016758a1f3b58406 (patch)
tree20a7fd692fac6f4bbd89a512393e1fd7f93c3901 /src/transport/plugin_transport_http_client.c
parent05fca448c7f7d2f01c33a511daa9bf3a52b87cc3 (diff)
downloadgnunet-97373cfa1b4d0f7e26a14f35016758a1f3b58406.tar.gz
gnunet-97373cfa1b4d0f7e26a14f35016758a1f3b58406.zip
-restrict curl accesses to http, disable redirect for http plugins
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r--src/transport/plugin_transport_http_client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c
index e7bf70462..02d092832 100644
--- a/src/transport/plugin_transport_http_client.c
+++ b/src/transport/plugin_transport_http_client.c
@@ -1255,6 +1255,10 @@ client_connect_get (struct Session *s)
1255#if CURL_TCP_NODELAY 1255#if CURL_TCP_NODELAY
1256 curl_easy_setopt (ps->recv_endpoint, CURLOPT_TCP_NODELAY, 1); 1256 curl_easy_setopt (ps->recv_endpoint, CURLOPT_TCP_NODELAY, 1);
1257#endif 1257#endif
1258 curl_easy_setopt (s->client_get, CURLOPT_FOLLOWLOCATION, 0);
1259 curl_easy_setopt (curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
1260 curl_easy_setopt (curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
1261
1258 mret = curl_multi_add_handle (s->plugin->curl_multi_handle, s->client_get); 1262 mret = curl_multi_add_handle (s->plugin->curl_multi_handle, s->client_get);
1259 if (mret != CURLM_OK) 1263 if (mret != CURLM_OK)
1260 { 1264 {