fix when content-type is undef