Skip to content

Commit 967c184

Browse files
Only push binary data to aiopika (Fixes #1513)
1 parent f8a1d43 commit 967c184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/socketio/async_aiopika_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async def _publish(self, data):
8282
try:
8383
await self.publisher_exchange.publish(
8484
aio_pika.Message(
85-
body=json.dumps(data),
85+
body=json.dumps(data).encode(),
8686
delivery_mode=aio_pika.DeliveryMode.PERSISTENT
8787
), routing_key='*',
8888
)

0 commit comments

Comments
 (0)