fix server error when content-type missing