diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-web-view.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 0d44ea9a8..4f6a7d24e 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -1853,31 +1853,6 @@ mime_type_policy_decision_requested_cb (WebKitWebView *web_view, process */ should_download = !webkit_web_view_can_show_mime_type (web_view, mime_type); - /* Make sure we respect the Content-Disposition header */ - if (!should_download) { - WebKitNetworkResponse *response = webkit_web_frame_get_network_response (frame); - SoupMessage *message = NULL; - - if (response) { - message = webkit_network_response_get_message (response); - } - - if (message) { - char *disposition = NULL; - - soup_message_headers_get_content_disposition (message->response_headers, - &disposition, - NULL); - - if (disposition) { - should_download = g_str_equal (disposition, "attachment"); - g_free (disposition); - } - } - - g_object_unref (response); - } - /* FIXME: need to use ephy_file_check_mime if auto-downloading */ if (should_download) { GObject *single; |