diff options
author | Marius Halden <marius.h@lden.org> | 2016-12-27 14:57:55 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-12-27 14:57:55 +0100 |
commit | 83702a89afa8575dbb155115eec57d6629e67748 (patch) | |
tree | 201ae262539c26e2092f8c7ecc1d662c89d86c42 | |
parent | 6d0d509df1e68d9b4577e2fe5b135e0aa6deece0 (diff) | |
parent | ece0715947de3e11c5a726131dcd91900e986f98 (diff) | |
download | bitlbee-facebook-83702a89afa8575dbb155115eec57d6629e67748.tar.gz bitlbee-facebook-83702a89afa8575dbb155115eec57d6629e67748.tar.bz2 bitlbee-facebook-83702a89afa8575dbb155115eec57d6629e67748.tar.xz |
Merge branch 'master' into track-messages
-rw-r--r-- | facebook/facebook-api.c | 2 | ||||
-rw-r--r-- | facebook/facebook-api.h | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/facebook/facebook-api.c b/facebook/facebook-api.c index 827b70e..4a54e41 100644 --- a/facebook/facebook-api.c +++ b/facebook/facebook-api.c @@ -477,7 +477,7 @@ fb_api_init(FbApi *api) priv = G_TYPE_INSTANCE_GET_PRIVATE(api, FB_TYPE_API, FbApiPrivate); api->priv = priv; - priv->http = fb_http_new(NULL); + priv->http = fb_http_new(FB_API_AGENT); priv->mqtt = fb_mqtt_new(); priv->msgs = g_queue_new(); priv->data = g_hash_table_new_full(g_direct_hash, g_direct_equal, diff --git a/facebook/facebook-api.h b/facebook/facebook-api.h index 5e17e98..ac4cc59 100644 --- a/facebook/facebook-api.h +++ b/facebook/facebook-api.h @@ -82,6 +82,13 @@ #define FB_API_SECRET "374e60f8b9bb6b8cbb30f78030438895" /** + * FB_API_AGENT: + * + * The HTTP User-Agent header. + */ +#define FB_API_AGENT "Facebook plugin / BitlBee / " PACKAGE_VERSION + +/** * FB_API_URL_ATTACH: * * The URL for attachment URL requests. |