Diff

plugins/mod_http_file_share.lua @ 11335:b7acab5e7f57

mod_http_file_share: Clarify message about missing Authorization header
author Kim Alvefur <zash@zash.se>
date Fri, 29 Jan 2021 15:34:15 +0100
parent 11334:dbba2d44fda2
child 11336:b05331cff47a
line wrap: on
line diff
--- a/plugins/mod_http_file_share.lua	Thu Jan 28 17:24:37 2021 +0100
+++ b/plugins/mod_http_file_share.lua	Fri Jan 29 15:34:15 2021 +0100
@@ -161,7 +161,7 @@
 		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);