Set content-type before printing response.