[gnome-online-accounts] webview: Set the SoupSession's "accept-language-auto" to TRUE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] webview: Set the SoupSession's "accept-language-auto" to TRUE
- Date: Mon, 14 May 2012 16:25:11 +0000 (UTC)
commit e4ad74ed571948cff98d3f5d3b355e5148cf903e
Author: Debarshi Ray <debarshir gnome org>
Date: Mon May 14 18:24:50 2012 +0200
webview: Set the SoupSession's "accept-language-auto" to TRUE
This is useful because Facebook sends the OAuth2 log in page in the
wrong language unless the Accept-Language header is set.
src/goabackend/goawebview.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goawebview.c b/src/goabackend/goawebview.c
index cc72ad9..7ac4b2c 100644
--- a/src/goabackend/goawebview.c
+++ b/src/goabackend/goawebview.c
@@ -222,6 +222,7 @@ goa_web_view_init (GoaWebView *self)
session = webkit_get_default_session ();
soup_session_add_feature_by_type (session, SOUP_TYPE_PROXY_RESOLVER_GNOME);
+ g_object_set (session, "accept-language-auto", TRUE, NULL);
soup_session_remove_feature_by_type (session, SOUP_TYPE_COOKIE_JAR);
cookie_jar = soup_cookie_jar_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]