# HG changeset patch # User Kim Alvefur # Date 1677792869 -3600 # Node ID 7c0e5c7eff7cf49fd7152000ff0fc36d44eef7b9 # Parent ed20555f163a3be84e0bb50b91e694dd9976a682 mod_tokenauth: Fix misplaced closing parenthesis `type(x ~= y)` is always a string, thus truthy diff -r ed20555f163a -r 7c0e5c7eff7c plugins/mod_tokenauth.lua --- a/plugins/mod_tokenauth.lua Thu Mar 02 14:37:46 2023 +0100 +++ b/plugins/mod_tokenauth.lua Thu Mar 02 22:34:29 2023 +0100 @@ -25,7 +25,7 @@ return nil, "invalid-host"; end - if (token_data and type(token_data) ~= "table") or (token_purpose and type(token_purpose ~= "string")) then + if (token_data and type(token_data) ~= "table") or (token_purpose and type(token_purpose) ~= "string") then return nil, "bad-request"; end