summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2013-06-06 14:04:11 +0200
committerDebarshi Ray <debarshir@gnome.org>2013-06-06 14:04:11 +0200
commit45f1243fd2ed2129caebdc1b55d1d8a255418a18 (patch)
tree05c2accb1a2132d093b1834f075760100f30f85c
parentf389246b60f3ce6d528af01f15a296b122815cd0 (diff)
http: Don't send a SoupMessage if we only want the thumbnail path
https://bugzilla.gnome.org/show_bug.cgi?id=701714
-rw-r--r--daemon/gvfsbackendhttp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/daemon/gvfsbackendhttp.c b/daemon/gvfsbackendhttp.c
index 8cd9f56d..c06d36b2 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);