Fixing cache_control header for events API
This commit is contained in:
parent
69f6fba133
commit
d5f4eae701
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in New Issue