From 910af18a007b762e217f9fe980342e624bb80e36 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 30 Sep 2024 13:57:09 -0400 Subject: [PATCH] Fix http websockify --- confluent_server/confluent/httpapi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_server/confluent/httpapi.py b/confluent_server/confluent/httpapi.py index 7a40a988..0378fe5b 100644 --- a/confluent_server/confluent/httpapi.py +++ b/confluent_server/confluent/httpapi.py @@ -445,6 +445,8 @@ def websockify_data(data): data = data.decode('utf8') except UnicodeDecodeError: data = data.decode('cp437') + except AttributeError: # already str + pass data = u' ' + data return data