Jump to content

Karrigell/Set Content-type header

From Wikibooks, open books for an open world

To set response headers, use the built-in RESPONSE dictionary

RESPONSE['Content-type'] = "text/plain"
print "content type is set to text/plain"