lib/hello_sign/client.rb in hellosign-ruby-sdk-3.2.5 vs lib/hello_sign/client.rb in hellosign-ruby-sdk-3.2.7
- old
+ new
@@ -181,10 +181,12 @@
end
def parse(response)
if response['content-type'] == 'application/pdf'
response.body
+ elsif response['content-type'] == 'application/zip'
+ response.body
elsif response.body.strip.empty?
{}
else
MultiJson.load response.body.strip
end
@@ -265,9 +267,13 @@
end
if (result.length > 0)
result = "?" + result
end
result
+ end
+
+ def create_search_string(raw_string)
+ raw_string.tr(" ", "+")
end
def prepare_signers(opts)
prepare opts, :signers
end