[vlc-devel] [PATCH] Use binary instead of ASCII when serving rawfile
Edward Wang
edward.c.wang at compdigitec.com
Tue Jan 31 23:39:18 CET 2012
Close #5949
---
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
--
1.7.5.4
More information about the vlc-devel
mailing list