Skip to content

Commit

Permalink
Merge pull request #1 from IvanBinzz/patch-1
Browse files Browse the repository at this point in the history
Remove last redirect
  • Loading branch information
Eugene Terentev authored Dec 26, 2018
2 parents b38cadb + d1f3bcd commit 9768fb7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@ module.exports = function(options) {
.then((buffer) => { return upload(options.bucket, destKey, buffer, mimeType); })
.then(() => {
fulfill({
statusCode: 301,
isBase64Encoded: true,
statusCode: 200,
body: resizedBuffer.toString('base64'),
headers: {
"Location": options.cdnUrl + '/' + destKey
'Content-Type': mimeType
}
})
})
Expand Down

0 comments on commit 9768fb7

Please sign in to comment.