From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-ch2-08v.sys.comcast.net (resqmta-ch2-08v.sys.comcast.net [69.252.207.40]) by hurricane.the-brannons.com (Postfix) with ESMTPS id DFC207A432 for ; Fri, 27 Mar 2015 20:44:10 -0700 (PDT) Received: from resomta-ch2-18v.sys.comcast.net ([69.252.207.114]) by resqmta-ch2-08v.sys.comcast.net with comcast id 8riS1q0042Udklx01ribws; Sat, 28 Mar 2015 03:42:35 +0000 Received: from eklhad ([IPv6:2601:4:5380:4ee:21e:4fff:fec2:a0f1]) by resomta-ch2-18v.sys.comcast.net with comcast id 8riZ1q00F5LMg2101ria3W; Sat, 28 Mar 2015 03:42:34 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke User-Agent: edbrowse/3.5.3+ Date: Fri, 27 Mar 2015 23:42:33 -0400 Message-ID: <20150227234233.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1427514155; bh=BnlK7uFffQ98MxzBXx92fuMRfJE6YvodYTVS71KV9ig=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=k5boxwFOWezR/+t9r6IGNLhBzuEW2BvGQHlGIxYc8rKb1WNXioxIA3ImQODo3dlJP pQ0d71GwE13Eo+z57+ZVokRIov5O3hA9viCg9ihwfv7PriNsOrLaVaRZrCHh0iB4xy upoLG0hVJ3yza3uEhg+jfzD57o7oMFqMSTXuNxd9JzWV2S69N7YpxE2Qc4/kIkIbjy civ/8+SLS5IXHyu9T/O+MIC5Fc792bEIExxrVjCQInU92uleRjMVvXrQgLY77iC6Dd Gq4AEL0TG2Jx4NiPh/PsusY7Eioxe3Kn6JYTTWKwCQk+oOGKO4rjtmKchoOLXohF4R xoJiDigXaFKiw== Subject: [Edbrowse-dev] pdf auto download X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2015 03:44:12 -0000 An unexpected side effect of our recent download to disk feature is that it takes place on pdf files, and I really don't want it to. Here is the logic, when surfing the web. If the http headers say the file that is coming is text, it is loaded into memory and rendered. You still have the option to save it to disk, formatted or unformatted, but it doesn't go down that path automatically, because it's most likely a web page that you just want to read. I think a pdf file should be treated the same way, though it is not today, because its content type is application/pdf. I propose adding, somewhere near http.c line 1568, the additional check for application/pdf, so it is treated like other text/html files, like other web pages. Passing the idea by you first, before I make the change.