Commit 07e657f5 authored by Edward Wang's avatar Edward Wang Committed by Jean-Baptiste Kempf

LuaHTTP: Use binary instead of ASCII when serving rawfile

Close #5949
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 97111d1d)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d1791947
......@@ -211,7 +211,7 @@ function rawfile(h,path,url,acl_)
else
vlc.msg.dbg("Reloading `"..filename.."'")
end
page = io.open(filename):read("*a")
page = io.open(filename,"rb"):read("*a")
mtime = new_mtime
end
return page
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment