]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add user agent and correct version check to httpclient
authorEvan Prodromou <evan@status.net>
Wed, 16 Sep 2009 01:22:47 +0000 (21:22 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 16 Sep 2009 01:22:47 +0000 (21:22 -0400)
lib/httpclient.php

index 145409f5094d915c960048639756089b3c832484..d606f5a6e93f726d693618ef18c997a36e18b6bf 100644 (file)
@@ -27,7 +27,7 @@
  * @link      http://laconi.ca/
  */
 
-if (!defined('LACONICA')) {
+if (!defined('STATUSNET')) {
     exit(1);
 }
 
@@ -114,4 +114,9 @@ class HTTPClient
     {
         throw new Exception("DELETE method unimplemented");
     }
+
+    function userAgent()
+    {
+        return "StatusNet/".STATUSNET_VERSION." (".STATUSNET_CODENAME.")";
+    }
 }