mirror of
https://github.com/zfile-dev/zfile.git
synced 2025-04-19 05:34:52 +00:00
✨ m3u8 响应头兼容部分浏览器直接解析 m3u8 文件
This commit is contained in:
@@ -72,7 +72,7 @@ public class DirectLinkController {
|
||||
|
||||
if (StrUtil.equalsIgnoreCase(FileUtil.extName(fileItem.getName()), "m3u8")) {
|
||||
String textContent = HttpUtil.getTextContent(url);
|
||||
response.setContentType("application/json;charset=utf-8");
|
||||
response.setContentType("application/vnd.apple.mpegurl;charset=utf-8");
|
||||
PrintWriter out = response.getWriter();
|
||||
out.write(textContent);
|
||||
out.flush();
|
||||
|
||||
Reference in New Issue
Block a user