pelle
unread,Jul 17, 2008, 5:01:29 PM7/17/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google App Engine
Hi.
I'm trying to return an SVG image, which works fine using the
following code when
I test it at home using the SDK:
def respond(self, data, type="text/html"):
self.response.headers.add_header("Content-Type", type)
self.response.out.write(data)
...
self.respond(svg, "image/svg+xml")
However, when running the same code on the Google server it returns
the image as text/html instead.
That header is not in the list of Disallowed HTTP Response Headers
anyway. Perhaps there is a better
way to set the content-type?