diff options
-rw-r--r-- | src/window-commands.c | 5 |
1 files 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; |