Skip to content

Commit

Permalink
Merge pull request #22 from lyrasis/fix-post-put
Browse files Browse the repository at this point in the history
fix post put
  • Loading branch information
mark-cooper authored Apr 19, 2024
2 parents 02e9ec5 + 5f298a9 commit 3758efe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/archivesspace/client/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ def 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)
Expand Down
2 changes: 1 addition & 1 deletion lib/archivesspace/client/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module ArchivesSpace
class Client
VERSION = "0.4.0"
VERSION = "0.4.1"
end
end

0 comments on commit 3758efe

Please sign in to comment.