# HG changeset patch # User Kim Alvefur # Date 1678191265 -3600 # Node ID 1f4b768c831ad3d3bbda91954c2ee05fdeb75355 # Parent 6a27effb3ef08f6fe31f9643a83fc129b076f3cb 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. diff -r 6a27effb3ef0 -r 1f4b768c831a mod_http_oauth2/mod_http_oauth2.lua --- 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'";