explicitly write header with content-type