From 79d61564bd8e122dfd5ee80ce37672f6d437efff Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Mon, 15 Oct 2012 20:23:49 +0200 Subject: ephy-web-view: remove handling of Content-Disposition 'attachment' WebKit already does exactly the same thing automatically, no need to handle it here. --- embed/ephy-web-view.c | 25 ------------------------- 1 file changed, 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; -- cgit v1.2.3