diff --git a/backend/main.py b/backend/main.py index 4a001f6..0b380e1 100644 --- a/backend/main.py +++ b/backend/main.py @@ -127,6 +127,8 @@ class HTMLCoder(JsonCoder): def decode(cls, value): """Decode HTMLResponse. """ + if isinstance(value, str): + value = value.encode("utf-8") response = JsonCoder.decode(value) return HTMLResponse(content=response['body'], status_code=response['status_code'])