rest-nvim / rest.nvim

A fast Neovim http client written in Lua
GNU General Public License v3.0
1.61k stars 142 forks source link

Get json content type for custom content types #297

Closed ggsalas closed 8 months ago

ggsalas commented 8 months ago

I have found a bug using the contentful api. This api returns this content type:

Content-Type: application/vnd.contentful.delivery.v1+json

Currently the content type is vnd instead of json.

I have added this fix, but I think can be improved extending to all the content types this plugin want to support, probably are only 3: json, html and txt. let me know what you think, and thanks for this great plugin 🎉