vlc | branch: master | Edward Wang <[email protected]> | Tue Jan 31 17:39:18 2012 -0500| [97111d1dbb62f64ab63a36c3a47c1cd166fe3c22] | committer: Jean-Baptiste Kempf
LuaHTTP: Use binary instead of ASCII when serving rawfile Close #5949 Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=97111d1dbb62f64ab63a36c3a47c1cd166fe3c22 --- share/lua/intf/http.lua | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/share/lua/intf/http.lua b/share/lua/intf/http.lua index 8c1dddb..8814c56 100644 --- a/share/lua/intf/http.lua +++ b/share/lua/intf/http.lua @@ -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 _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
