Browse Source

For be user friendly, we disable hard check of content_type

Bastien Sevajol (Algoo) 8 years ago
parent
commit
ab83bc936a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      tracim/tracim/controllers/api.py

+ 3 - 2
tracim/tracim/controllers/api.py View File

@@ -29,8 +29,9 @@ abort(
29 29
 
30 30
 class APIBaseController(BaseController):
31 31
     def _before(self, *args, **kw):
32
-        if request.content_type != 'application/json':
33
-            abort(406, 'Only JSON requests are supported')
32
+        # For be user friendly, we disable hard check of content_type
33
+        # if request.content_type != 'application/json':
34
+        #     abort(406, 'Only JSON requests are supported')
34 35
 
35 36
         super()._before(*args, **kw)
36 37