diff --git a/IM/REST.py b/IM/REST.py index 81be84da9..4ebe02a02 100644 --- a/IM/REST.py +++ b/IM/REST.py @@ -103,7 +103,7 @@ def get_media_type(header): """ accept = bottle.request.headers.get(header) pos = accept.find(";") - if pos != 1: + if pos != -1: accept = accept[:pos] return accept.strip()