Skip to content

Commit

Permalink
Seriously last fix
Browse files Browse the repository at this point in the history
  • Loading branch information
laontme committed Jun 23, 2020
1 parent 7898f3d commit caff8ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/direct.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = async (req, res) => {
file.loadAttributes(async (err, file) => {
file.download(options, (err, data) => {
res.write(data);
res.setHeader('Conent-Type', await fileType.fromBuffer(data));
await res.setHeader('Conent-Type', fileType.fromBuffer(data));
res.end();
});
});
Expand Down

0 comments on commit caff8ea

Please sign in to comment.