Skip to content

Commit 4d62a06

Browse files
authored
Update websockets.py
1 parent 915c7ae commit 4d62a06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

views/websockets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async def websocket_upload(websocket: WebSocket, uid: str):
2222
Then, the client must wait for the signal before sending file chunks.
2323
"""
2424
if any(char not in string.ascii_letters + string.digits + '-' for char in uid):
25-
log.debug(f"△ Invalid transfer ID: {uid}")
25+
log.debug(f"△ Invalid transfer ID: \"{str(uid).translate(str.maketrans(None, None, '\n\r\b')).strip()}\"")
2626
await websocket.close(code=1008, reason="Invalid transfer ID")
2727
return
2828

0 commit comments

Comments
 (0)