Fix content type for articles

This commit is contained in:
Arne Schlüter 2016-03-25 23:00:40 +01:00
commit 4e2b135ac2

View file

@ -56,6 +56,7 @@ def articles():
} }
conn.close() conn.close()
bottle.response.content_type = "application/json"
return json.dumps([article for article_id, article in articles.items()]) return json.dumps([article for article_id, article in articles.items()])
@bottle.get('/static/<filepath:path>') @bottle.get('/static/<filepath:path>')