I'm trying to dynamically generate iCal output using Max M's icalendar python module and google's app engine. However, when I omit the boiler plate <html> header and footer tags on the output from webapp.RequestHandler, it looks like the HTTP 200 response is added to the top of the file.
When I register this code:
class Calendar(webapp.RequestHandler):
def get(self):
self.response.out.write('BEGIN:VCALENDAR\n')
[...]
with webapp.WSGIApplication, the response looks like:
Status: 200 OK
Content-Type: text/html; charset=utf-8
Cache-Control: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 11133
BEGIN:VCALENDAR
[...]
How do I omit the <html> tags and not get the HTTP 200 response splatted at the top of the page?