We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40967b5 commit 37fa812Copy full SHA for 37fa812
examples/cdi-exporter/transformer.py
@@ -93,12 +93,13 @@ def find_cdi_file():
93
continue
94
95
# Check for EXACT MIME type: application/ld+json with DDI-CDI profile
96
- # Must match: application/ld+json; profile="http://ddialliance.org/Specification/DDI-CDI/1.0/DDI-CDI.jsonld"
97
- content_type_str = str(content_type)
+ # Must match: application/ld+json with ddialliance.org profile (case-insensitive)
+ content_type_str = str(content_type).lower()
98
is_cdi_mime = (
99
'application/ld+json' in content_type_str and
100
'profile=' in content_type_str and
101
- 'ddialliance.org/Specification/DDI-CDI' in content_type_str
+ 'ddialliance.org' in content_type_str and
102
+ 'ddi-cdi' in content_type_str
103
)
104
105
if is_cdi_mime:
0 commit comments