fix content-type not being set with fallback. Necessary for safari