Fixed content/type detection to use prefix matching in case the content/type header is sent with charset suffix.