Skip to content

Commit a50216a

Browse files
committed
feat(media): implement Accept-Ranges header to support scrobbling
1 parent d490e57 commit a50216a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ export class ShareXServer {
162162

163163
res.set({
164164
"Content-Length": fileStat.size.toString(),
165+
"Accept-Ranges": "bytes",
165166
"Content-Type": lookup(filename) || "application/octet-stream",
166167
});
167168

0 commit comments

Comments
 (0)