We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 294c81d commit 20b5212Copy full SHA for 20b5212
src/emulator/tasksEmulator.ts
@@ -268,7 +268,9 @@ export class TasksEmulator implements EmulatorInstance {
268
req.body.task.name =
269
req.body.task.name ??
270
`/projects/${projectId}/locations/${locationId}/queues/${queueName}/tasks/${Math.floor(Math.random() * Number.MAX_SAFE_INTEGER)}`;
271
- req.body.task.httpRequest.body = JSON.parse(atob(req.body.task.httpRequest.body));
+ req.body.task.httpRequest.body = JSON.parse(
272
+ Buffer.from(req.body.task.httpRequest.body, "base64").toString("utf-8"),
273
+ );
274
275
const task = req.body.task as Task;
276
0 commit comments