[gvfs] http/dav: Send Accept-Language header
- From: Christian Kellner <gicmo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] http/dav: Send Accept-Language header
- Date: Sat, 7 May 2011 23:28:14 +0000 (UTC)
commit 927d91cfcda34c88fd5137f6c118818903a1f02d
Author: Christian Kellner <gicmo gnome org>
Date: Sun May 8 01:27:49 2011 +0200
http/dav: Send Accept-Language header
Send which languages we prefer. Fixes bug 166795.
daemon/gvfsbackendhttp.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendhttp.c b/daemon/gvfsbackendhttp.c
index 4926724..fd01ad8 100644
--- a/daemon/gvfsbackendhttp.c
+++ b/daemon/gvfsbackendhttp.c
@@ -107,6 +107,10 @@ g_vfs_backend_http_init (GVfsBackendHttp *backend)
soup_session_add_feature (backend->session_async, cookie_jar);
g_object_unref (cookie_jar);
+ /* Send Accept-Language header (see bug 166795) */
+ g_object_set (backend->session, "accept-language-auto", TRUE, NULL);
+ g_object_set (backend->session_async, "accept-language-auto", TRUE, NULL);
+
/* Logging */
debug = g_getenv ("GVFS_HTTP_DEBUG");
if (debug)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]