mod_http_upload/mod_http_upload.lua
changeset 4980 75b6e5df65f9
parent 4658 ea17cfcbffab
--- a/mod_http_upload/mod_http_upload.lua	Mon Jul 18 13:58:27 2022 +0200
+++ b/mod_http_upload/mod_http_upload.lua	Mon Jul 18 22:47:54 2022 +0200
@@ -57,9 +57,9 @@
 
 local http_files;
 
-if not pcall(function ()
+if prosody.process_type == "prosody" then
 	http_files = require "net.http.files";
-end) then
+else
 	http_files = module:depends"http_files";
 end