Mercurial > prosody-modules
diff mod_http_oauth2/mod_http_oauth2.lua @ 5258:9629971e307f
mod_http_oauth2: Fix userinfo status code off-by-one
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 16 Mar 2023 19:59:32 +0100 |
parents | b2120fb4a279 |
children | 8fba651b10ef |
line wrap: on
line diff
--- a/mod_http_oauth2/mod_http_oauth2.lua Thu Mar 16 19:28:44 2023 +0100 +++ b/mod_http_oauth2/mod_http_oauth2.lua Thu Mar 16 19:59:32 2023 +0100 @@ -723,7 +723,7 @@ -- permissions and scopes granted. } return { - status_code = 201; + status_code = 200; headers = { content_type = "application/json" }; body = json.encode(user_info); };