magic: add a fake text/ mime type for public keys

This commit is contained in:
Brad Fitzpatrick 2011-06-03 18:41:26 -07:00
parent 9f2daec131
commit 811f75954a
1 changed files with 1 additions and 0 deletions

View File

@ -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.