open-services / open-registry

Community Owned JavaScript Registry
https://open-registry.dev
MIT License
266 stars 8 forks source link

package metadata has wrong MIME type #18

Open drewfish opened 5 years ago

drewfish commented 5 years ago

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

victorb commented 5 years ago

Yup, absolutely. Thanks for the report!

victorb commented 5 years ago

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.