# HG changeset patch # User Kim Alvefur # Date 1678640183 -3600 # Node ID dc27b997e969bdc27df726492f89372d3351fe37 # Parent fd0d25b42cd9aabdf15d94466d3b5010b8d8ead8 mod_http_oauth2: Invoke mod_http_errors to render error on invalid redirect Turns out returning a table like that produces a blank page. Kinda boring and not very helpful. diff -r fd0d25b42cd9 -r dc27b997e969 mod_http_oauth2/mod_http_oauth2.lua --- a/mod_http_oauth2/mod_http_oauth2.lua Sun Mar 12 12:06:44 2023 +0100 +++ b/mod_http_oauth2/mod_http_oauth2.lua Sun Mar 12 17:56:23 2023 +0100 @@ -209,7 +209,7 @@ }) or ("Here's your authorization code:\n%s\n"):format(code); return response; elseif not redirect_uri then - return {status_code = 400}; + return 400; end local redirect = url.parse(redirect_uri);