Skip to content

Commit

Permalink
Fix websocket notify leading to port exhaustion
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjstretchalot committed Jan 14, 2025
1 parent 8629471 commit dfff4e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lonelypss/routes/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ async def handle_trusted_notify(
try:
async with session.post(
subscriber.url,
data=guarded_request_body,
# https://github.com/aio-libs/aiohttp/issues/10325
data=None if content_length == 0 else guarded_request_body,
headers=headers,
) as resp:
if resp.ok:
Expand Down

0 comments on commit dfff4e4

Please sign in to comment.