fixes bug if content-type is a single string