mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
committed by
Kyle Spearrin
parent
e0ff13e193
commit
47b5b9f950
@@ -32,7 +32,7 @@ export class CreateCommand {
|
||||
}
|
||||
|
||||
try {
|
||||
const reqJson = new Buffer(requestJson, 'base64').toString();
|
||||
const reqJson = Buffer.from(requestJson, 'base64').toString();
|
||||
req = JSON.parse(reqJson);
|
||||
} catch (e) {
|
||||
return Response.badRequest('Error parsing the encoded request data.');
|
||||
|
||||
Reference in New Issue
Block a user