fix content-type and content-encoding