diff options
author | Kim Alvefur <zash@zash.se> | 2023-03-17 16:23:12 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-03-17 16:23:12 +0100 |
commit | 869581384d74b506b026c70584a7338e7f1399cb (patch) | |
tree | 218371460894ca55a38c69a959753bf9f73cc3da /net/http/files.lua | |
parent | ffd1561c5e93ee8ef2195ff61175cbf30494acd5 (diff) | |
download | prosody-869581384d74b506b026c70584a7338e7f1399cb.tar.gz prosody-869581384d74b506b026c70584a7338e7f1399cb.zip |
net: Prefix module imports with prosody namespace
Diffstat (limited to 'net/http/files.lua')
-rw-r--r-- | net/http/files.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/http/files.lua b/net/http/files.lua index 583f7514..24d9f204 100644 --- a/net/http/files.lua +++ b/net/http/files.lua @@ -6,10 +6,10 @@ -- COPYING file in the source package for more information. -- -local server = require"net.http.server"; +local server = require"prosody.net.http.server"; local lfs = require "lfs"; -local new_cache = require "util.cache".new; -local log = require "util.logger".init("net.http.files"); +local new_cache = require "prosody.util.cache".new; +local log = require "prosody.util.logger".init("net.http.files"); local os_date = os.date; local open = io.open; @@ -23,7 +23,7 @@ if package.config:sub(1,1) == "\\" then forbidden_chars_pattern = "[/%z\001-\031\127\"*:<>?|]" end -local urldecode = require "util.http".urldecode; +local urldecode = require "prosody.util.http".urldecode; local function sanitize_path(path) --> util.paths or util.http? if not path then return end local out = {}; |