title: Android 2.2 and 2.3 PDF download via HTTPS seems broken
body: <p>I've been going nuts about PDF downloads to mobile devices. Here's the next madness, observable on Android 2.2 and 2.3. I couldn't reproduce this problem on iPhones or other devices, neither on Firefox or other desktop browsers.</p>
  
  <p>I'm downloading a PDF via HTTP and it works just fine. Then I'm downloading the same PDF via HTTPS and the download doesn't finish (and the filename is lost):</p>
  
  <p><img src="https://i.stack.imgur.com/UEXMp.png" alt="Download doesn&#39;t finish and filename is lost"></p>
  
  <p>I'm using these HTTP headers (and others, which are irrelevant here):</p>
  
  <pre><code>Content-Disposition: attachment; filename="abc.pdf"
  Content-Type: application/pdf
  </code></pre>
  
  <p>Changing the <code>Content-Disposition</code> to <code>inline</code> or removing it entirely doesn't help either. Removing the <code>Content-Type</code> will results in displaying the raw binary data in the browser window.</p>
  
  <p>Note: I've already discovered <a href="https://stackoverflow.com/a/9376445/521799">a problem related to untrusted SSL certificates</a>, but that doesn't seem to be the only problem. So I'm really looking for yet another explanation.</p>
  
  <p>Any ideas welcome!</p>