We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
vnd.api+json
1 parent a52b83b commit 576f8e6Copy full SHA for 576f8e6
1 file changed
lua/rest-nvim/ui/result.lua
@@ -78,6 +78,8 @@ local panes = {
78
local body_meta = {}
79
if content_type then
80
local base_type, res_type = content_type[1]:match("(.*)/([^;]+)")
81
+ -- HACK: handle application/vnd.api+json style content types
82
+ res_type = res_type:match(".+%+(.*)") or res_type
83
if base_type == "image" then
84
body = { "Binary(image) answer" }
85
elseif res_type == "octet_stream" then
0 commit comments