simonw / datasette-lite

Datasette running in your browser using WebAssembly and Pyodide
https://lite.datasette.io
Apache License 2.0
329 stars 27 forks source link

accept "binary/octet-stream" content-type #72

Open ryan-williams opened 9 months ago

ryan-williams commented 9 months ago

S3 defaults (some?) files to content-type: binary/octet-stream, and datasette-lite was giving a cryptic "That url could not be loaded" alert.

This adds binary/octet-stream to the list of recognized content-types, as well as a console.warn when an unrecognized content-type is encountered.