open-registry icon indicating copy to clipboard operation
open-registry copied to clipboard

package metadata has wrong MIME type

Open drewfish opened this issue 6 years ago • 2 comments

When I try curl -I https://npm.open-registry.dev/http-hooks I get Content-Type: text/html. This should be application/json yes?

drewfish avatar Apr 25 '19 01:04 drewfish

Yup, absolutely. Thanks for the report!

victorb avatar Apr 25 '19 08:04 victorb

Fixing this would involve changing the metadata-handler to return with content-type, just like the index-handler does.

This would be a good first issue for someone to implement if they are not familiar with the project. Let me know if the instructions above are not clear enough.

victorb avatar Apr 25 '19 08:04 victorb