lib/dor/services/client/accession.rb in dor-services-client-12.16.0 vs lib/dor/services/client/accession.rb in dor-services-client-12.17.0
- old
+ new
@@ -22,11 +22,10 @@
# @return [Boolean] true on success
# @raise [NotFoundResponse] when the response is a 404 (object not found)
# @raise [UnexpectedResponse] when the response is not successful.
def start(params = {})
resp = connection.post do |req|
- req.url path
- req.params = params
+ req.url with_querystring(url: path, params: params)
end
return true if resp.success?
raise_exception_based_on_response!(resp)
end