diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2012-12-18 14:07:35 +0100 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2012-12-18 14:21:55 +0100 |
commit | e0f03f9cd91a8f074cb905c8be8c3f5eabb2ff7c (patch) | |
tree | a28f4ab5d840d7a8d0e56863b19a55a0c79fbd12 | |
parent | ed7fd5313ca8759e162c640b3de293489e359162 (diff) | |
download | gvfs-e0f03f9cd91a8f074cb905c8be8c3f5eabb2ff7c.tar.gz |
http: Set use-thread-context property on async SoupSession
Apparently SoupRequester needs this to be set TRUE.
https://bugzilla.gnome.org/show_bug.cgi?id=687757
-rw-r--r-- | daemon/gvfsbackendhttp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/gvfsbackendhttp.c b/daemon/gvfsbackendhttp.c index 377d4f35..8cd9f56d 100644 --- a/daemon/gvfsbackendhttp.c +++ b/daemon/gvfsbackendhttp.c @@ -95,6 +95,8 @@ g_vfs_backend_http_init (GVfsBackendHttp *backend) backend->session_async = soup_session_async_new_with_options ("user-agent", "gvfs/" VERSION, NULL); + /* SoupRequester seems to depend on use-thread-context */ + g_object_set (G_OBJECT (backend->session_async), "use-thread-context", TRUE, NULL); /* Proxy handling */ proxy_resolver = g_object_new (SOUP_TYPE_PROXY_RESOLVER_GNOME, NULL); |