diff options
Diffstat (limited to 'matweb')
| -rw-r--r-- | matweb/rest_api.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/matweb/rest_api.py b/matweb/rest_api.py index 429b82e..2909cf6 100644 --- a/matweb/rest_api.py +++ b/matweb/rest_api.py | |||
| @@ -106,6 +106,8 @@ class APIBulkDownloadCreator(Resource): | |||
| 106 | def post(self): | 106 | def post(self): |
| 107 | utils.check_upload_folder(current_app.config['UPLOAD_FOLDER']) | 107 | utils.check_upload_folder(current_app.config['UPLOAD_FOLDER']) |
| 108 | data = request.json | 108 | data = request.json |
| 109 | if not data: | ||
| 110 | abort(400, message="Post Body Required") | ||
| 109 | if not self.v.validate(data): | 111 | if not self.v.validate(data): |
| 110 | abort(400, message=self.v.errors) | 112 | abort(400, message=self.v.errors) |
| 111 | # prevent the zip file from being overwritten | 113 | # prevent the zip file from being overwritten |
