Fix bug when content-type header not set