X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fmime.ex;h=84fb536e0630644f94e492302ae34333eaec096e;hb=90e157ef803296989b41d1fbfb5096b39320f75d;hp=5e1c109e98a01b4fe24a9f1af30861ec296c76f8;hpb=bda25b999b5176c73380bff9a1ce6be51cba4820;p=akkoma diff --git a/lib/pleroma/mime.ex b/lib/pleroma/mime.ex index 5e1c109e9..84fb536e0 100644 --- a/lib/pleroma/mime.ex +++ b/lib/pleroma/mime.ex @@ -1,9 +1,13 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + defmodule Pleroma.MIME do @moduledoc """ Returns the mime-type of a binary and optionally a normalized file-name. """ @default "application/octet-stream" - @read_bytes 31 + @read_bytes 35 @spec file_mime_type(String.t()) :: {:ok, content_type :: String.t(), filename :: String.t()} | {:error, any()} | :error