fixed getContentType function on HttpPart implementation