From 811f75954ad0f271110c32cf9524c8ef8deecf2f Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Fri, 3 Jun 2011 18:41:26 -0700 Subject: [PATCH] magic: add a fake text/ mime type for public keys --- lib/go/camli/magic/magic.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/go/camli/magic/magic.go b/lib/go/camli/magic/magic.go index 3758f81d9..34562388a 100644 --- a/lib/go/camli/magic/magic.go +++ b/lib/go/camli/magic/magic.go @@ -29,6 +29,7 @@ var prefixTable = []prefixEntry{ {[]byte("\xff\xd8\xff\xe1"), "image/jpeg"}, {[]byte("\xff\xd8\xff\xe0"), "image/jpeg"}, {[]byte{137, 'P', 'N', 'G', '\r', '\n', 26, 10}, "image/png"}, + {[]byte("-----BEGIN PGP PUBLIC KEY BLOCK---"), "text/x-openpgp-public-key"}, } // Returns the emptry string if unknown.