diff options
author | Evan Prodromou <evan@status.net> | 2009-09-15 21:22:47 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-09-15 21:22:47 -0400 |
commit | 8ceb4196f323295742fd1113ff014ebee9ad7ae3 (patch) | |
tree | e686dcb60c2d6ca5d6315519bc733e5555393831 /lib/httpclient.php | |
parent | 3380b49aecb773ebadfe4a8e563f75ce4855e1a2 (diff) |
add user agent and correct version check to httpclient
Diffstat (limited to 'lib/httpclient.php')
-rw-r--r-- | lib/httpclient.php | 7 |
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.")"; + } } |