From 93d01fa16b2ea587db81a226a32d406eeccc4e9d Mon Sep 17 00:00:00 2001 From: dequis Date: Mon, 21 Nov 2016 10:23:40 -0300 Subject: Set a non-empty HTTP User-Agent Shot in the dark to fix checkpoint issues, but had to be done anyway. --- patches/08-user-agent.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 patches/08-user-agent.patch diff --git a/patches/08-user-agent.patch b/patches/08-user-agent.patch new file mode 100644 index 0000000..d46f344 --- /dev/null +++ b/patches/08-user-agent.patch @@ -0,0 +1,27 @@ +--- a/libpurple/protocols/facebook/api.h 2016-11-21 09:56:02.734212775 -0300 ++++ b/libpurple/protocols/facebook/api.h 2016-11-21 10:14:38.808696834 -0300 +@@ -91,6 +91,13 @@ + #define FB_API_SECRET "374e60f8b9bb6b8cbb30f78030438895" + + /** ++ * FB_API_AGENT: ++ * ++ * The HTTP User-Agent header. ++ */ ++#define FB_API_AGENT "Facebook plugin / Purple / 0.9" ++ ++/** + * FB_API_URL_ATTACH: + * + * The URL for attachment URL requests. +--- a/libpurple/protocols/facebook/api.c 2016-11-21 09:56:02.734212775 -0300 ++++ b/libpurple/protocols/facebook/api.c 2016-11-21 10:15:05.214906611 -0300 +@@ -762,6 +762,8 @@ + g_free(data); + } + ++ purple_http_request_header_set(req, "User-Agent", FB_API_AGENT); ++ + data = fb_http_params_close(params, NULL); + purple_http_request_set_contents(req, data, -1); + ret = purple_http_request(priv->gc, req, callback, api); -- cgit v1.2.3