Fixing cache_control header for events API

This commit is contained in:
Marian Steinbach 2018-02-15 20:58:16 +01:00
parent 69f6fba133
commit d5f4eae701
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class EventsResource(object):
resp.media = next_events
maxage = 60 * 60 # 1 hour
resp.cache_control(["max_age=%d" % maxage])
resp.cache_control = ["max_age=%d" % maxage]
class ParticleSensorResource(object):