Skip to content
Snippets Groups Projects
Commit 97111d1d authored by Edward Wang's avatar Edward Wang Committed by Jean-Baptiste Kempf
Browse files

LuaHTTP: Use binary instead of ASCII when serving rawfile


Close #5949

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 58d5803a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment