Skip to content

Commit

Permalink
fix 2 newline on dummy webvtt response (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nfrederiksen authored Aug 23, 2023
1 parent 9baf969 commit 7ffcd2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ export class ChannelEngine {
async _handleDummySubtitleEndpoint(req,res,next) {
debug(`req.url=${req.url}`);
try {
const body = `WEBVTT\nX-TIMESTAMP-MAP=MPEGTS:0,LOCAL:00:00:00.000`;
const body = `WEBVTT\nX-TIMESTAMP-MAP=MPEGTS:0,LOCAL:00:00:00.000\n\n`;
res.sendRaw(200, Buffer.from(body, 'utf8'), {
"Content-Type": "text/vtt",
"Access-Control-Allow-Origin": "*",
Expand Down

0 comments on commit 7ffcd2c

Please sign in to comment.