Changeset

5247:dc27b997e969

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.
author Kim Alvefur <zash@zash.se>
date Sun, 12 Mar 2023 17:56:23 +0100
parents 5246:fd0d25b42cd9
children 5248:b8b2bf0c1b4b
files mod_http_oauth2/mod_http_oauth2.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);