Changeset

5231:bef543068077

mod_http_oauth2: Fix to disable disabled response handlers correctly Wrong table
author Kim Alvefur <zash@zash.se>
date Fri, 10 Mar 2023 12:03:23 +0100
parents 5230:ac252db71027
children 5232:0f943619e01a
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	Fri Mar 10 12:01:52 2023 +0100
+++ b/mod_http_oauth2/mod_http_oauth2.lua	Fri Mar 10 12:03:23 2023 +0100
@@ -457,7 +457,7 @@
 for handler_type in pairs(response_type_handlers) do
 	if not allowed_response_type_handlers:contains(handler_type) then
 		module:log("debug", "Response type %q disabled", handler_type);
-		grant_type_handlers[handler_type] = nil;
+		response_type_handlers[handler_type] = nil;
 	else
 		module:log("debug", "Response type %q enabled", handler_type);
 	end