aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-01-29 15:34:15 +0100
committerKim Alvefur <zash@zash.se>2021-01-29 15:34:15 +0100
commitd068be45d5380abd94dc41cb315bb2e0c6801e74 (patch)
tree4b2b27ff54e49f1dd17d4ec4b8dac804095353e5
parent2c8349a602275f2cd9f3a96832891635f81ab628 (diff)
downloadprosody-d068be45d5380abd94dc41cb315bb2e0c6801e74.tar.gz
prosody-d068be45d5380abd94dc41cb315bb2e0c6801e74.zip
mod_http_file_share: Clarify message about missing Authorization header
-rw-r--r--plugins/mod_http_file_share.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_http_file_share.lua b/plugins/mod_http_file_share.lua
index e9c00399..d960e853 100644
--- a/plugins/mod_http_file_share.lua
+++ b/plugins/mod_http_file_share.lua
@@ -161,7 +161,7 @@ function handle_upload(event, path) -- PUT /upload/:slot
authz = authz:match("^Bearer (.*)")
end
if not authz then
- module:log("debug", "Missing Authorization");
+ module:log("debug", "Missing or malformed Authorization header");
return 403;
end
local authed, upload_info = jwt.verify(secret, authz);