Skip to content

Commit

Permalink
Bugfixes in REST API
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Jan 28, 2016
1 parent f11fc40 commit 4ccf76a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IM/REST.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 4ccf76a

Please sign in to comment.