# HG changeset patch # User Kim Alvefur # Date 1684408765 -7200 # Node ID 40c9901590063e8da718c5106b1faeb523ac0b93 # Parent 03f393d572fe71597cf3d2b36d010514a2d93138 mod_http_oauth2: Use error status code when rendering error page Shouldn't include a 200 OK status code when showing an error. diff -r 03f393d572fe -r 40c990159006 mod_http_oauth2/mod_http_oauth2.lua --- a/mod_http_oauth2/mod_http_oauth2.lua Thu May 18 13:03:09 2023 +0200 +++ b/mod_http_oauth2/mod_http_oauth2.lua Thu May 18 13:19:25 2023 +0200 @@ -57,7 +57,7 @@ data = data or {}; data.site_name = site_name; local resp = { - status_code = 200; + status_code = data.error and data.error.code or 200; headers = { ["Content-Type"] = "text/html; charset=utf-8"; ["Content-Security-Policy"] = "default-src 'self'";