From 8a38c7a9ba0238092edc4e398ca7635bb4392c5f Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Thu, 2 Aug 2012 12:04:28 +0200 Subject: window-commands: suggest the right name in 'Save As' Use the info in the Content-Disposition header instead of the base name of the resource. https://bugzilla.gnome.org/show_bug.cgi?id=674291 --- src/window-commands.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/window-commands.c b/src/window-commands.c index da8a2f960..5a4d2117e 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -307,9 +307,8 @@ get_suggested_filename (EphyWebView *view) } else { - SoupURI *soup_uri = soup_uri_new (webkit_web_resource_get_uri (web_resource)); - suggested_filename = g_path_get_basename (soup_uri->path); - soup_uri_free (soup_uri); + WebKitNetworkResponse *response = webkit_web_frame_get_network_response (frame); + suggested_filename = g_strdup (webkit_network_response_get_suggested_filename (response)); } return suggested_filename; -- cgit