Skip to content

Commit

Permalink
fixed request
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeressian committed Jun 26, 2020
1 parent 1f9ba10 commit 7429ec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9739,7 +9739,7 @@ function uploadFile(entry, storageName, accessKey) {
const readStream = fs_1.default.createReadStream(entry.fullPath);
core_1.info(`Deploying ${entry.path}`);
return node_fetch_1.default(`https://storage.bunnycdn.com/${storageName}/${entry.path}`, {
method: 'POST',
method: 'PUT',
headers: {
"AccessKey": accessKey,
},
Expand Down
2 changes: 1 addition & 1 deletion src/uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function uploadFile(entry: readdirp.EntryInfo, storageName: string, accessKey: s
const readStream = fs.createReadStream(entry.fullPath);
info(`Deploying ${entry.path}`);
return fetch(`https://storage.bunnycdn.com/${storageName}/${entry.path}`, {
method: 'POST',
method: 'PUT',
headers: {
"AccessKey": accessKey,
},
Expand Down

0 comments on commit 7429ec1

Please sign in to comment.