Software /
code /
prosody
Changeset
11336:b05331cff47a
mod_http_file_share: Indicate missing token via WWW-Authenticate header
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 29 Jan 2021 15:34:36 +0100 |
parents | 11335:b7acab5e7f57 |
children | 11337:f89c8e6beaa6 |
files | plugins/mod_http_file_share.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);