X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmod_httpserver.lua;h=426bbf2c548a1ea54564f09a12b4a670bfc173e0;hb=208b58807eed76ef1f569bec705897fe65ae02db;hp=08328a43069328a936d1ed1498768ebcd5e3362f;hpb=4655b9d3c169969a9d11275157f5e7527585a869;p=prosody.git diff --git a/plugins/mod_httpserver.lua b/plugins/mod_httpserver.lua index 08328a43..426bbf2c 100644 --- a/plugins/mod_httpserver.lua +++ b/plugins/mod_httpserver.lua @@ -47,7 +47,7 @@ local function preprocess_path(path) end function serve_file(path) - local f, err = open(http_base..path, "r"); + local f, err = open(http_base..path, "rb"); if not f then return response_404; end local data = f:read("*a"); f:close();