Skip to content

Commit 94aa74f

Browse files
committed
Remove encoding-hack, because now server response is correct
1 parent bdf1248 commit 94aa74f

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

cleantalk.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,4 @@ def request(self, message, sender_ip, sender_email, sender_nickname, submit_time
9494
response_str = response_bytes.decode(CleanTalk.ENCODING)
9595
response_parsed = json.loads(response_str)
9696

97-
if 'comment' in response_parsed:
98-
response_parsed['comment'] = response_parsed['comment'].encode('ISO-8859-1', 'ignore').decode('utf-8', 'ignore')
99-
10097
return response_parsed

0 commit comments

Comments
 (0)