diff --git a/lib/muffin_man/data_kiosk/v20231115.rb b/lib/muffin_man/data_kiosk/v20231115.rb index 2015f64..e588dc3 100644 --- a/lib/muffin_man/data_kiosk/v20231115.rb +++ b/lib/muffin_man/data_kiosk/v20231115.rb @@ -78,12 +78,12 @@ def get_document(document_id) call_api end - def download_document(document_id) - response = get_document(document_id) - if response.success? - Typhoeus.get(JSON.parse(response.body)["documentUrl"]) + def retrieve_document_content(document_id) + get_document_response = get_document(document_id) + if get_document_response.success? + Typhoeus.get(JSON.parse(get_document_response.body)["documentUrl"], accept_encoding: "") else - response + get_document_response end end end diff --git a/lib/muffin_man/version.rb b/lib/muffin_man/version.rb index ca705b8..f267804 100644 --- a/lib/muffin_man/version.rb +++ b/lib/muffin_man/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module MuffinMan - VERSION = "2.2.1" + VERSION = "2.2.2" end