From 8bbf163cfb796524754d7872e148c9793cd4452f Mon Sep 17 00:00:00 2001 From: dequis Date: Fri, 7 Jul 2017 05:49:57 -0300 Subject: Add tweak values 1-15, sets orca version in the user agent Since there are some issues I can't reproduce, let's do this experiment properly and figure out if this really matters. Value 1 is slightly newer. Value 2 is newer with the current set of fields. Value 3 is what purple-facebook uses. Adding 4 makes it http only, adding 8 makes it mqtt only. Some values are redundant. I suggest trying 1, 2, 3, 7 and 11. --- facebook/facebook-http.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'facebook/facebook-http.h') diff --git a/facebook/facebook-http.h b/facebook/facebook-http.h index b3ff001..f7d02d9 100644 --- a/facebook/facebook-http.h +++ b/facebook/facebook-http.h @@ -205,6 +205,14 @@ fb_http_close_requests(FbHttp *http); void fb_http_cookies_parse_request(FbHttp *http, FbHttpRequest *req); +/** + * fb_http_set_agent: + * @http: The #FbHttp. + * @agent: The new user agent string. + */ +void +fb_http_set_agent(FbHttp *http, const gchar *agent); + /** * fb_http_request_new: * @http: The #FbHttp. -- cgit v1.2.3