Fix response handling with kwarg

This commit is contained in:
2021-01-21 19:21:02 +01:00
parent ec4ddb506b
commit d76210ef57
3 changed files with 6 additions and 2 deletions

View File

@ -562,4 +562,4 @@ class Bot(ClientXMPP):
def respond(self, response, content_type="text/html"):
"""Send this response back with the web server."""
return Response(response, content_type=content_type)
return Response(text=response, content_type=content_type)