forked from CringeStudios/gamja
lib/client: encode empty SASL response as "+"
This commit is contained in:
parent
2c3fbdd605
commit
fd63c169ed
@ -470,7 +470,7 @@ export default class Client extends EventTarget {
|
|||||||
initialResp = { command: "AUTHENTICATE", params: [respStr] };
|
initialResp = { command: "AUTHENTICATE", params: [respStr] };
|
||||||
break;
|
break;
|
||||||
case "EXTERNAL":
|
case "EXTERNAL":
|
||||||
initialResp = { command: "AUTHENTICATE", params: [base64.encode("")] };
|
initialResp = { command: "AUTHENTICATE", params: ["+"] };
|
||||||
break;
|
break;
|
||||||
case "OAUTHBEARER":
|
case "OAUTHBEARER":
|
||||||
let raw = "n,,\x01auth=Bearer " + params.token + "\x01\x01";
|
let raw = "n,,\x01auth=Bearer " + params.token + "\x01\x01";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user