Skip to content

Commit

Permalink
Merge pull request #37 from ToastDC/patch-8
Browse files Browse the repository at this point in the history
fix MagicCap support
  • Loading branch information
Tanner authored May 20, 2020
2 parents 21db8ca + 56617b7 commit bb66f9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/routes/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ async function files(req, res) {
// eslint-disable-next-line no-param-reassign
files.fdata = files.fdataUploader;
}
if (files.file) {
files.fdata = files.file;
}
if (!this.auth(this.c.key, fields.key, this.c) && usingUploader === false) {
res.statusCode = 401;
res.write('Unauthorized');
Expand Down

0 comments on commit bb66f9f

Please sign in to comment.