get content type from headers array.