Skip to content

Handle content-type headers which contain subtype - #24

Open
rkaravia wants to merge 1 commit into
geotiffjs:masterfrom
rkaravia:handle-content-type-with-subtype
Open

Handle content-type headers which contain subtype#24
rkaravia wants to merge 1 commit into
geotiffjs:masterfrom
rkaravia:handle-content-type-with-subtype

Conversation

@rkaravia

Copy link
Copy Markdown

The content-type header can contain additional information after the main type, see RFC7231.

This can break the contentType === 'image/tiff' check further down.

An example is this GeoTIFF file which has the content-type header set to image/tiff; application=geotiff; profile=cloud-optimized.

Handle content-type headers such as
   "image/tiff; application=geotiff; profile=cloud-optimized"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant