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 16:48:35 +0200
commiteba1a3c95e69e893687a58a3082165cce5823333 (patch)
tree4296de96a4589c322fd4289a211bf238f0749953
parent017c2615fdae75a615f798391f6987658528e736 (diff)
downloadgvfs-eba1a3c95e69e893687a58a3082165cce5823333.tar.gz
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);