diff options
author | Kim Alvefur <zash@zash.se> | 2021-01-29 15:34:36 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-01-29 15:34:36 +0100 |
commit | 88ce2f1c9449842ade27b2834a06b1b596a1bf2a (patch) | |
tree | a6787ad681647080bfcc2eec92db7df2b2443044 /plugins/mod_http_file_share.lua | |
parent | 610278afa0c0deb3c9b10b91454858e031a6fb46 (diff) | |
download | prosody-88ce2f1c9449842ade27b2834a06b1b596a1bf2a.tar.gz prosody-88ce2f1c9449842ade27b2834a06b1b596a1bf2a.zip |
mod_http_file_share: Indicate missing token via WWW-Authenticate header
Diffstat (limited to 'plugins/mod_http_file_share.lua')
-rw-r--r-- | plugins/mod_http_file_share.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_http_file_share.lua b/plugins/mod_http_file_share.lua index d960e853..65f28345 100644 --- a/plugins/mod_http_file_share.lua +++ b/plugins/mod_http_file_share.lua @@ -162,6 +162,7 @@ function handle_upload(event, path) -- PUT /upload/:slot 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); |