Gpg: Viewing signature .tar.gz.asc in browser shows empty page

From FVue
Jump to: navigation, search

Problem

I've created a signature with the extension .tar.gz.asc for everyone to download, e.g. cdots-1.2.0.tar.gz.asc. But when I try to view the signature, the browser shows me an empty page.

Environment

  • Firefox-2.0.0.13
  • Apache-1.3.34

Solution

Add the following to .htaccess:

        # Make sure ASCII armored signatures with extension .tar.gz.asc
        # are not served with content-encoding: "x-gzip"
AddEncoding x-gzip .gz 
AddType text/plain .asc
<Files *.gz.asc>
  RemoveEncoding .gz 
</Files>

Rationale

When viewing the HTTP headers, it appears the Apache webserver tries to send the signature with content-encoding "x-gzip":

$ wget --save-headers -O- http://fvue.nl/cdots/cdots-1.2.0.tar.gz.asc
...
Content-Type: text/plain
Content-Encoding: x-gzip
...

Apparently, this confuses Firefox...

Journal

20080403

How to remove Content-Encoding: x-gzip?
Forum thread with same question (and answer)

Comments

blog comments powered by Disqus