We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
jq
1 parent da70732 commit 155816bCopy full SHA for 155816b
lua/rest-nvim/curl/init.lua
@@ -52,7 +52,7 @@ local function create_callback(method, url)
52
-- Check if the content-type is "application/json" so we can format the JSON
53
-- output later
54
for _, header in ipairs(res.headers) do
55
- if string.find(header, "application/json") then
+ if header:find("application") and header:find("json") then
56
json_body = true
57
break
58
end
0 commit comments