Skip to content

Commit

Permalink
Merge pull request #123 from RockefellerArchiveCenter/bugfix-121
Browse files Browse the repository at this point in the history
Sends JSON only
  • Loading branch information
bonniegee authored Mar 6, 2020
2 parents c8ce024 + e7e8520 commit d2f694f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bagdiscovery/routines.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def move_bag(self, bag):
def deliver_data(self, bag, url):
r = requests.post(
url,
data={
"bag_data": json.dumps(bag.data),
json={
"bag_data": bag.data,
"origin": bag.origin,
"identifier": bag.bag_identifier},
headers={"Content-Type": "application/json"},
Expand Down

0 comments on commit d2f694f

Please sign in to comment.