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_) ...@@ -211,7 +211,7 @@ function rawfile(h,path,url,acl_)
else else
vlc.msg.dbg("Reloading `"..filename.."'") vlc.msg.dbg("Reloading `"..filename.."'")
end end
page = io.open(filename):read("*a") page = io.open(filename,"rb"):read("*a")
mtime = new_mtime mtime = new_mtime
end end
return page 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