Karrigell/Set Content-type header

From Wikibooks, open books for an open world
Jump to navigation Jump to search

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

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