Commit 97111d1d 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>
parent 58d5803a
......@@ -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