fix issue of undefined content-type
new version