send correct content-type