# HG changeset patch # User Kim Alvefur # Date 1611930876 -3600 # Node ID b05331cff47a75b7158986090754e0765a0b0dfa # Parent b7acab5e7f57a37721e9bfa9ab591603fd92b9ae mod_http_file_share: Indicate missing token via WWW-Authenticate header diff -r b7acab5e7f57 -r b05331cff47a plugins/mod_http_file_share.lua --- a/plugins/mod_http_file_share.lua Fri Jan 29 15:34:15 2021 +0100 +++ b/plugins/mod_http_file_share.lua Fri Jan 29 15:34:36 2021 +0100 @@ -162,6 +162,7 @@ end if not authz then module:log("debug", "Missing or malformed Authorization header"); + event.response.headers.www_authenticate = "Bearer"; return 403; end local authed, upload_info = jwt.verify(secret, authz);