content-type not being set properly