Browse Source

Merge branch 'fix/theora-detection-read-bytes' into 'develop'

Fix Theora detection in mime.ex

See merge request pleroma/pleroma!493
tags/v0.9.9
lambda 5 years ago
parent
commit
6786ad3d98
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/pleroma/mime.ex

+ 1
- 1
lib/pleroma/mime.ex View File

@@ -3,7 +3,7 @@ defmodule Pleroma.MIME do
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


Loading…
Cancel
Save