[gvfs] http: Don't send a SoupMessage if we only want the thumbnail path
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] http: Don't send a SoupMessage if we only want the thumbnail path
- Date: Thu, 6 Jun 2013 14:41:16 +0000 (UTC)
commit 45f1243fd2ed2129caebdc1b55d1d8a255418a18
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jun 6 14:04:11 2013 +0200
http: Don't send a SoupMessage if we only want the thumbnail path
https://bugzilla.gnome.org/show_bug.cgi?id=701714
daemon/gvfsbackendhttp.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendhttp.c b/daemon/gvfsbackendhttp.c
index 8cd9f56..c06d36b 100644
--- a/daemon/gvfsbackendhttp.c
+++ b/daemon/gvfsbackendhttp.c
@@ -685,6 +685,13 @@ try_query_info (GVfsBackend *backend,
SoupMessage *msg;
SoupURI *uri;
+ if (g_file_attribute_matcher_matches_only (attribute_matcher,
+ G_FILE_ATTRIBUTE_THUMBNAIL_PATH))
+ {
+ g_vfs_job_succeeded (G_VFS_JOB (job));
+ return TRUE;
+ }
+
uri = http_backend_get_mount_base (backend);
msg = soup_message_new_from_uri (SOUP_METHOD_HEAD, uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]