aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/sasl/oauthbearer.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl/oauthbearer.lua b/util/sasl/oauthbearer.lua
index 7cba5f35..26940ce6 100644
--- a/util/sasl/oauthbearer.lua
+++ b/util/sasl/oauthbearer.lua
@@ -11,7 +11,7 @@ local function oauthbearer(self, message)
return "failure", "not-authorized";
end
- local gs2_header, kvpairs = message:match("^(n,[^,]*,),(.+)$");
+ local gs2_header, kvpairs = message:match("^(n,[^,]*,)(.+)$");
if not gs2_header then
return "failure", "malformed-request";
end