]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix user-agent for curlclient
authorEvan Prodromou <evan@status.net>
Wed, 16 Sep 2009 02:05:57 +0000 (22:05 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 16 Sep 2009 02:05:57 +0000 (22:05 -0400)
lib/curlclient.php

index f45c3c2f4a01c4bd7e88b88a20090e160e7bce18..99c3b6aa41077ecf4715c33b9d586653edbf47bb 100644 (file)
@@ -88,10 +88,14 @@ class CurlClient extends HTTPClient
         return $this->parseResults($result);
     }
 
+    function post($url, $headers=null)
+    {
+    }
+
     function setup($ch)
     {
         curl_setopt_array($ch,
-                          array(CURLOPT_USERAGENT, $this->userAgent(),
+                          array(CURLOPT_USERAGENT => $this->userAgent(),
                                 CURLOPT_HEADER => true,
                                 CURLOPT_RETURNTRANSFER => true));
     }