Mercurial > prosody-hg
diff net/http/files.lua @ 12974:ba409c67353b
net: Prefix module imports with prosody namespace
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 17 Mar 2023 16:23:12 +0100 |
| parents | 36942fa001b4 |
| children | dba7073f1452 |
line wrap: on
line diff
--- a/net/http/files.lua Fri Mar 17 17:07:47 2023 +0100 +++ b/net/http/files.lua Fri Mar 17 16:23:12 2023 +0100 @@ -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 @@ 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 = {};
