lib/onfido/resources/document.rb in onfido-2.1.0 vs lib/onfido/resources/document.rb in onfido-2.1.1
- old
+ new
@@ -8,10 +8,10 @@
validate_file!(file)
payload[:applicant_id] = applicant_id
payload[:file] = file
payload[:type] = type
- post(path: 'documents', payload: payload)
+ post(path: 'documents', payload: payload, send_json: false)
end
def find(document_id)
get(path: "documents/#{document_id}")
end