textileio / textile

Textile hub services and buckets lib
MIT License
226 stars 45 forks source link

feat(api): adds content-types for .svg and .json #554

Closed burk3 closed 3 years ago

burk3 commented 3 years ago

in our app, .svg's were not displaying in img tags due to the content-type returned by the server being text/plain instead of image/svg+xml.

To fix, the gateway will return the appropriate content-type, image/svg+xml, for .svg files. As a bonus, .json files will return application/json.

referenced mime types from https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types

burk3 commented 3 years ago

let me close, sign-off, and re-open.