mod_http_oauth2/mod_http_oauth2.lua
changeset 5281 a1055024b94e
parent 5280 67777cb7353d
child 5282 d94dba396f9f
--- a/mod_http_oauth2/mod_http_oauth2.lua	Sun Mar 26 14:37:42 2023 +0200
+++ b/mod_http_oauth2/mod_http_oauth2.lua	Sun Mar 26 14:39:34 2023 +0200
@@ -339,7 +339,7 @@
 	         and request.headers.content_type == "application/x-www-form-urlencoded"
 	         and http.formdecode(request.body);
 
-	if not form then return {}; end
+	if type(form) ~= "table" then return {}; end
 
 	if not form.user_token then
 		-- First step: login