add user agent and correct version check to httpclient

This commit is contained in:
Evan Prodromou 2009-09-15 21:22:47 -04:00
parent 3380b49aec
commit 8ceb4196f3
1 changed files with 6 additions and 1 deletions

View 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.")";
}
}