fix ftbfs
authorSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>
Sat, 16 Jun 2018 06:23:37 +0000 (08:23 +0200)
committerSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>
Sat, 16 Jun 2018 06:23:37 +0000 (08:23 +0200)
src/gns/gnunet-gns-proxy.c

index e8f0854f1d0545bd668020907fb86104ae763fd7..9c3c78b766291ccdb8062d4e510a98d27eba3834 100644 (file)
@@ -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,