Mercurial > prosody-modules
diff mod_http_oauth2/mod_http_oauth2.lua @ 5218:1f4b768c831a
mod_http_oauth2: Correct field name for HTTP response status code
'code' is used in the incoming side of the Prosody HTTP stack while
'status_code' is used on the response side. Not confusing at all.
The default is 200 so this mistake had no real effect.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 07 Mar 2023 13:14:25 +0100 |
parents | 6a27effb3ef0 |
children | 25e824f64fd3 |
line wrap: on
line diff
--- a/mod_http_oauth2/mod_http_oauth2.lua Tue Mar 07 10:27:40 2023 +0000 +++ b/mod_http_oauth2/mod_http_oauth2.lua Tue Mar 07 13:14:25 2023 +0100 @@ -47,7 +47,7 @@ data = data or {}; data.site_name = site_name; local resp = { - code = 200; + status_code = 200; headers = { ["Content-Type"] = "text/html; charset=utf-8"; ["Content-Security-Policy"] = "default-src 'self'";