From: Schanzenbach, Martin Date: Sat, 16 Jun 2018 06:23:37 +0000 (+0200) Subject: fix ftbfs X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a7b9cb74b69e67dfcbaaaf0f31b264e6886e1374;p=oweals%2Fgnunet.git fix ftbfs --- diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index e8f0854f1..9c3c78b76 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c @@ -1178,6 +1178,7 @@ curl_check_hdr (void *buffer, s5r->domain); continue; } + } else if (0 == strcmp (cookie_domain, s5r->leho)) { @@ -2040,6 +2041,20 @@ create_response (void *cls, CURLOPT_WRITEDATA, s5r); } + else if (0 == strcasecmp (meth, + MHD_HTTP_METHOD_DELETE)) + { + s5r->state = SOCKS5_SOCKET_DOWNLOAD_STARTED; + curl_easy_setopt (s5r->curl, + CURLOPT_CUSTOMREQUEST, + "DELETE"); + curl_easy_setopt (s5r->curl, + CURLOPT_WRITEFUNCTION, + &curl_download_cb); + curl_easy_setopt (s5r->curl, + CURLOPT_WRITEDATA, + s5r); + } else { GNUNET_log (GNUNET_ERROR_TYPE_WARNING,