lib/archivesspace/client/client.rb in archivesspace-client-0.4.0 vs lib/archivesspace/client/client.rb in archivesspace-client-0.4.1

- old
+ new

@@ -23,14 +23,14 @@ def get(path, options = {}) request "GET", path, options end def post(path, payload, params = {}) - request "POST", path, {body: payload, query: params} + request "POST", path, {body: payload.to_json, query: params} end def put(path, payload, params = {}) - request "PUT", path, {body: payload, query: params} + request "PUT", path, {body: payload.to_json, query: params} end def delete(path) request "DELETE", path end