diff --git a/app/services/core_data_connector/authority/viaf.rb b/app/services/core_data_connector/authority/viaf.rb index 9e93028..c895e09 100644 --- a/app/services/core_data_connector/authority/viaf.rb +++ b/app/services/core_data_connector/authority/viaf.rb @@ -4,11 +4,14 @@ class Viaf < Base include Http::Requestable BASE_URL = 'https://viaf.org' - DEFAULT_LIMIT = 20 def find(id, options = {}) - send_request("#{BASE_URL}/viaf/#{id}/viaf.json", method: :get) do |body| + headers = { + 'Accept': 'application/json' + } + + send_request("#{BASE_URL}/viaf/#{id}", method: :get, headers:) do |body| JSON.parse(body) end end