diff options
author | Debarshi Ray <debarshir@gnome.org> | 2013-06-06 14:04:11 +0200 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2013-06-06 14:04:11 +0200 |
commit | 45f1243fd2ed2129caebdc1b55d1d8a255418a18 (patch) | |
tree | 05c2accb1a2132d093b1834f075760100f30f85c /daemon/gvfsbackendhttp.c | |
parent | f389246b60f3ce6d528af01f15a296b122815cd0 (diff) | |
download | gvfs-45f1243fd2ed2129caebdc1b55d1d8a255418a18.tar.gz |
http: Don't send a SoupMessage if we only want the thumbnail path
https://bugzilla.gnome.org/show_bug.cgi?id=701714
Diffstat (limited to 'daemon/gvfsbackendhttp.c')
-rw-r--r-- | daemon/gvfsbackendhttp.c | 7 |
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); |