fix content-type headers for json requests