Skip to content

Commit

Permalink
Return schreenshot as an attachment.
Browse files Browse the repository at this point in the history
  • Loading branch information
molefrog committed Jan 18, 2017
1 parent b07497d commit 1ab85d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ app.get('*', async (req, response) => {

// Send the image
response.set('Content-Type', 'image/png')
response.attachment('boo.png')
response.send(buffer)
} catch (error) {
response
Expand Down

0 comments on commit 1ab85d4

Please sign in to comment.