Set Content-Type before sending out headers