feature (transcoding): update csp

This commit is contained in:
Mickael Kerjean
2019-12-18 03:29:25 +11:00
parent 539a6f086d
commit cb519d7d24
2 changed files with 2 additions and 1 deletions

View File

@ -136,6 +136,7 @@ func hls_playlist(reader io.ReadCloser, ctx *App, res *http.ResponseWriter, req
response += fmt.Sprintf("/hls/hls_%d.ts?path=%s\n", i, cacheName)
}
response += "#EXT-X-ENDLIST\n"
(*res).Header().Set("Content-Type", "application/x-mpegURL")
return NewReadCloserFromBytes([]byte(response)), nil
}