fix error when Content-Type not defined