diff --git a/nip5a/nip5a_test.go b/nip5a/nip5a_test.go index a31af6a..c14b218 100644 --- a/nip5a/nip5a_test.go +++ b/nip5a/nip5a_test.go @@ -234,4 +234,3 @@ func mustHash(s string) [32]byte { copy(h[:], b) return h } - diff --git a/nipb0/blossom/utils.go b/nipb0/blossom/utils.go index 49fb43a..31947fa 100644 --- a/nipb0/blossom/utils.go +++ b/nipb0/blossom/utils.go @@ -6,41 +6,41 @@ import ( ) var commonMimeExtensions = map[string]string{ - "application/json": ".json", - "application/pdf": ".pdf", + "application/json": ".json", + "application/pdf": ".pdf", "application/vnd.android.package-archive": ".apk", - "application/vnd.sqlite3": ".sqlite3", - "application/xml": ".xml", - "audio/aac": ".aac", - "audio/flac": ".flac", - "audio/midi": ".midi", - "audio/mp3": ".mp3", - "audio/mpeg": ".mp3", - "audio/mp4": ".m4a", - "audio/ogg": ".ogg", - "audio/wav": ".wav", - "audio/webm": ".weba", - "audio/x-aiff": ".aiff", - "audio/x-m4a": ".m4a", - "image/avif": ".avif", - "image/gif": ".gif", - "image/jpeg": ".jpg", - "image/png": ".png", - "image/svg+xml": ".svg", - "image/webp": ".webp", - "text/css": ".css", - "text/csv": ".csv", - "text/html": ".html", - "text/javascript": ".js", - "text/markdown": ".md", - "text/plain": ".txt", - "text/xml": ".xml", - "video/mp2t": ".ts", - "video/mp4": ".mp4", - "video/ogg": ".ogv", - "video/quicktime": ".mov", - "video/webm": ".webm", - "video/x-matroska": ".mkv", + "application/vnd.sqlite3": ".sqlite3", + "application/xml": ".xml", + "audio/aac": ".aac", + "audio/flac": ".flac", + "audio/midi": ".midi", + "audio/mp3": ".mp3", + "audio/mpeg": ".mp3", + "audio/mp4": ".m4a", + "audio/ogg": ".ogg", + "audio/wav": ".wav", + "audio/webm": ".weba", + "audio/x-aiff": ".aiff", + "audio/x-m4a": ".m4a", + "image/avif": ".avif", + "image/gif": ".gif", + "image/jpeg": ".jpg", + "image/png": ".png", + "image/svg+xml": ".svg", + "image/webp": ".webp", + "text/css": ".css", + "text/csv": ".csv", + "text/html": ".html", + "text/javascript": ".js", + "text/markdown": ".md", + "text/plain": ".txt", + "text/xml": ".xml", + "video/mp2t": ".ts", + "video/mp4": ".mp4", + "video/ogg": ".ogv", + "video/quicktime": ".mov", + "video/webm": ".webm", + "video/x-matroska": ".mkv", } var commonExtensionMimes = map[string]string{