Commit 4be22d43 authored by PidgeyL's avatar PidgeyL
Browse files

Bugfix #247

parent 22d57134
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ class API():
          # Check API version for backwards compatibility. We'll call the old API v1.0
          elif request.headers.get('Version') in ['1.1']:
            # Get the requested return type
            returnType = request.headers.get('Accept')
            returnType = request.headers.get('Accept', '*/*')
            # Default to JSON
            if   any(t in returnType for t in ['json', 'application/*', 'text/*', '*/*']):
              data = error if error else {'status': 'success', 'data': data}