#!/usr/bin/env python
#
# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/
#

import datetime
from genrecyclingcalendar import make_recycling_calendar

ONE_YEAR = int(datetime.timedelta(365).total_seconds())

def application(env, start_response):
    start_response('200 OK', [('Content-Type', 'text/calendar'), ('Cache-Control', 'max-age=%d' % ONE_YEAR)])
    return [make_recycling_calendar()]

@@ -320,18 +320,61 @@
 200 OK',
+%0A                   %5B%0A                      
  
-%5B
 ('Conten
@@ -399,16 +399,39 @@
 endar'),
+%0A                      
  ('Cache
@@ -465,16 +465,98 @@
 NE_YEAR)
+,%0A                       ('Access-Control-Allow-Origin', '*'),%0A                   
 %5D)%0A    r

add CORS header