bugfix when post data has no content type