fix(core): update

This commit is contained in:
2021-01-22 20:46:26 +00:00
parent 9d8c14d187
commit 9e338354c6
7 changed files with 44 additions and 31 deletions

View File

@@ -14,7 +14,7 @@ export class WorkerManager {
const route = `/accounts/${accountIdentifier}/workers/scripts/${workerName}`;
const responseBody = await this.cfAccount.request('PUT', route, workerScript, {
'Content-Type': 'application/javascript',
'Content-Length': Buffer.byteLength(workerScript)
'Content-Length': Buffer.byteLength(workerScript),
});
return CloudflareWorker.fromApiObject(this, responseBody.result);
}