lib/httpx/transcoder/json.rb in httpx-0.17.0 vs lib/httpx/transcoder/json.rb in httpx-0.18.0
- old
+ new
@@ -33,10 +33,10 @@
end
def decode(response)
content_type = response.content_type.mime_type
- raise Error, "invalid json mime type (#{content_type})" unless JSON_REGEX.match?(content_type)
+ raise HTTPX::Error, "invalid json mime type (#{content_type})" unless JSON_REGEX.match?(content_type)
::JSON.method(:parse)
end
end
register "json", JSON