Fixed bug when detecting if content is multipart