Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Nov 13, 2023
1 parent 0ecbb78 commit 1aa055e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/integration/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def test_message_api():
assert not props['data_id'].startswith('origin/a/wis2')
assert props['data_id'].startswith('cog')
assert props['content']['size'] == 257
assert props['content']['encoding'] == 'utf-8'
assert props['content']['encoding'] == 'base64'
assert props['content']['value'] is not None

link_rel = msg['links'][0]
Expand Down
2 changes: 1 addition & 1 deletion wis2box-management/wis2box/pubsub/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def __init__(self, identifier: str, topic: str, filepath: str,
content_value = base64.b64encode(self.filebytes)

self.message['properties']['content'] = {
'encoding': 'utf-8',
'encoding': 'base64',
'value': content_value,
'size': self.length
}
Expand Down

0 comments on commit 1aa055e

Please sign in to comment.