HLS: add Content-Type header (#408)

This commit is contained in:
aler9 2021-07-03 23:52:12 +02:00
parent fc7041b551
commit 76f7b7a30a

View file

@ -629,6 +629,7 @@ func (c *Converter) runRequestHandler(terminate chan struct{}, done chan struct{
cnt += f.Name() + ".ts\n"
}
req.W.Header().Set("Content-Type", `application/x-mpegURL`)
req.Res <- bytes.NewReader([]byte(cnt))
}()
@ -645,6 +646,7 @@ func (c *Converter) runRequestHandler(terminate chan struct{}, done chan struct{
continue
}
req.W.Header().Set("Content-Type", `video/MP2T`)
req.Res <- f.buf.NewReader()
case req.FileName == "":