From 06d414975c62d3c5696d2c61aabbecfc0ed98273 Mon Sep 17 00:00:00 2001
From: pandamoon21 <33972938+pandamoon21@users.noreply.github.com>
Date: Sat, 11 May 2024 23:32:47 +0700
Subject: [PATCH 1/2] fix(Attachment): Check mime-type case-insensitively
---
devine/core/tracks/attachment.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/devine/core/tracks/attachment.py b/devine/core/tracks/attachment.py
index c359629..7fad38e 100644
--- a/devine/core/tracks/attachment.py
+++ b/devine/core/tracks/attachment.py
@@ -37,7 +37,7 @@ class Attachment:
mime_type = {
".ttf": "application/x-truetype-font",
".otf": "application/vnd.ms-opentype"
- }.get(path.suffix, mimetypes.guess_type(path)[0])
+ }.get(path.suffix.lower(), mimetypes.guess_type(path)[0])
if not mime_type:
raise ValueError("The attachment mime-type could not be automatically detected.")
From 71a3a4e2c4c30a16af1ae228d48dd5ee8491f53a Mon Sep 17 00:00:00 2001
From: rlaphoenix <17136956+rlaphoenix@users.noreply.github.com>
Date: Sat, 11 May 2024 17:45:10 +0100
Subject: [PATCH 2/2] docs(contributors): Add pandamoon21 to Contributor list
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index fdacf82..7d922a6 100644
--- a/README.md
+++ b/README.md
@@ -343,6 +343,7 @@ Please refrain from spam or asking for questions that infringe upon a Service's
+
## Licensing