summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/httpclient.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/httpclient.php b/lib/httpclient.php
index 145409f50..d606f5a6e 100644
--- a/lib/httpclient.php
+++ b/lib/httpclient.php
@@ -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.")";
+ }
}