Skip to content

Commit

Permalink
fix: simplify the check for json content type
Browse files Browse the repository at this point in the history
  • Loading branch information
jellydn committed Dec 18, 2023
1 parent 8d24228 commit e8ad1e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/hurl/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ end
---@param content_type string
---@return boolean
util.is_json_response = function(content_type)
return string.find(content_type, 'application/json') ~= nil or
string.find(content_type, 'application/vnd.api%+json') ~= nil
return string.find(content_type, 'json') ~= nil
end

util.is_html_response = function(content_type)
Expand Down

0 comments on commit e8ad1e5

Please sign in to comment.