Skip to content

Commit

Permalink
API: Use proper JSON Content-Type
Browse files Browse the repository at this point in the history
  • Loading branch information
fxedel committed Apr 12, 2018
1 parent db8e3c4 commit 020c4a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/json_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ManufacturerList(webapp.RequestHandler):
CACHE_KEY = memcache_keys.MANUFACTURER_CACHE_KEY

def get(self):
self.response.headers['Content-Type'] = 'text/plain'
self.response.headers['Content-Type'] = 'application/json'
self.response.headers['Cache-Control'] = 'public; max-age=300;'

response = memcache.get(memcache_keys.MANUFACTURER_CACHE_KEY)
Expand Down

0 comments on commit 020c4a4

Please sign in to comment.