Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Specify charset in content type for subtitles

Chocobozzz0ee00337f324
diff --git a/server/core/lib/object-storage/videos.ts b/server/core/lib/object-storage/videos.ts
index 0336245699..b0ceca3af0 100644
--- a/server/core/lib/object-storage/videos.ts
+++ b/server/core/lib/object-storage/videos.ts
@@ -78,7 +78,7 @@ export function storeVideoCaption (inputPath: string, filename: string) {
objectStorageKey: generateCaptionObjectStorageKey(filename),
bucketInfo: CONFIG.OBJECT_STORAGE.CAPTIONS,
isPrivate: false,
- contentType: 'text/vtt'
+ contentType: 'text/vtt; charset=UTF-8'
})
}