Fix response handling with kwarg

This commit is contained in:
Luke Murphy 2021-01-21 19:21:02 +01:00
parent ec4ddb506b
commit d76210ef57
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
# xbotlib x.x.x (UNRELEASED) # xbotlib x.x.x (UNRELEASED)
# xbotlib 0.14.1 (2021-01-21)
- Fix response handling for web serving
# xbotlib 0.14.0 (2021-01-19) # xbotlib 0.14.0 (2021-01-19)
- Reduce generated config flow to only mandatory options - Reduce generated config flow to only mandatory options

View File

@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"
[tool.poetry] [tool.poetry]
name = "xbotlib" name = "xbotlib"
version = "0.14.0" version = "0.14.1"
description = "XMPP bots for humans" description = "XMPP bots for humans"
authors = ["decentral1se <lukewm@riseup.net>"] authors = ["decentral1se <lukewm@riseup.net>"]
maintainers = ["decentral1se <lukewm@riseup.net>"] maintainers = ["decentral1se <lukewm@riseup.net>"]

View File

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