fix bug with reponse type detecting, when request does not contain content type.