Send language header with requests.
authorDaniel Carl <danielcarl@gmx.de>
Sun, 2 Jun 2013 12:49:00 +0000 (14:49 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Sun, 2 Jun 2013 12:49:00 +0000 (14:49 +0200)
This will help the webserver to send this right content.

src/session.c

index 0952e34..632ced1 100644 (file)
@@ -59,6 +59,7 @@ void session_init(void)
     vb.session = webkit_get_default_session();
     g_object_set(vb.session, "max-conns", SETTING_MAX_CONNS , NULL);
     g_object_set(vb.session, "max-conns-per-host", SETTING_MAX_CONNS_PER_HOST, NULL);
+    g_object_set(vb.session, "accept-language-auto", true, NULL);
 
 #ifdef FEATURE_COOKIE
     soup_session_add_feature(