visgl / loaders.gl

Loaders for big data visualization. Website:

Home Page:https://loaders.gl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails to load MIME type "image/PNG" due to case-sensitive parsing

JayFoxRox opened this issue · comments

From https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#structure_of_a_mime_type:

MIME types are case-insensitive but are traditionally written in lowercase. The parameter values can be case-sensitive.

However, loaders.gl has problems loading my file with image/PNG MIME-type, so I have to replace it by image/png in the backend. This implies the MIME-type parsing is done incorrectly.

Unfortunately I can't provide a URL for testing, so you'll have to set up your own server for testing.