mirror of https://github.com/perkeep/perkeep.git
magic: add a fake text/ mime type for public keys
This commit is contained in:
parent
9f2daec131
commit
811f75954a
|
@ -29,6 +29,7 @@ var prefixTable = []prefixEntry{
|
||||||
{[]byte("\xff\xd8\xff\xe1"), "image/jpeg"},
|
{[]byte("\xff\xd8\xff\xe1"), "image/jpeg"},
|
||||||
{[]byte("\xff\xd8\xff\xe0"), "image/jpeg"},
|
{[]byte("\xff\xd8\xff\xe0"), "image/jpeg"},
|
||||||
{[]byte{137, 'P', 'N', 'G', '\r', '\n', 26, 10}, "image/png"},
|
{[]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.
|
// Returns the emptry string if unknown.
|
||||||
|
|
Loading…
Reference in New Issue