[fix] Enable autojson in Bottle app to encode additional routes result

This commit is contained in:
Jérôme Lebleu 2014-06-06 14:33:14 +02:00
parent 804752df3e
commit e52a4085af

View file

@ -579,7 +579,7 @@ class Interface(BaseInterface):
""" """
def __init__(self, actionsmap, routes={}): def __init__(self, actionsmap, routes={}):
# TODO: Return OK to 'OPTIONS' xhr requests (l173) # TODO: Return OK to 'OPTIONS' xhr requests (l173)
app = Bottle(autojson=False) app = Bottle(autojson=True)
## Wrapper which sets proper header ## Wrapper which sets proper header
def apiheader(callback): def apiheader(callback):