Skip to content

Commit 66b8387

Browse files
committed
Merge branch 'alpha' into file-types
2 parents 04b204e + 0a5dd27 commit 66b8387

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

spec/helper.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ if (global._babelPolyfill) {
3030
console.error('We should not use polyfilled tests');
3131
process.exit(1);
3232
}
33-
3433
process.noDeprecation = true;
3534

3635
const cache = require('../lib/cache').default;

src/Routers/FilesRouter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class FilesRouter {
127127
}
128128
const filesController = config.filesController;
129129
const { filename } = req.params;
130-
const contentType = req.get('Content-type') || mime.getType(filename);
130+
const contentType = req.get('Content-type');
131131

132132
if (!req.body || !req.body.length) {
133133
next(new Parse.Error(Parse.Error.FILE_SAVE_ERROR, 'Invalid file upload.'));

0 commit comments

Comments
 (0)