Skip to content

Commit d1357a0

Browse files
Set content-type on saved playlists.
1 parent 7a32c9a commit d1357a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worker/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ async function tryComputeHlsResult(hlsUrl: string, { method, origin, blobsBucket
335335
try {
336336
const key = `hls/playlists/${hash}.txt`;
337337
if (!await blobsBucket.head(key)) {
338-
await blobsBucket.put(key, originalBytes.array());
338+
await blobsBucket.put(key, originalBytes.array(), { httpMetadata: { contentType: 'text/plain' } });
339339
}
340340
} catch (e) {
341341
console.error(`error saving playlist ${hash}: ${(e as Error).stack || e}`);

0 commit comments

Comments
 (0)