Updated CHANGELOG

This commit is contained in:
Fabio Manganiello 2022-08-31 00:49:08 +02:00
parent c3fa3315f5
commit a675fe6a92
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774
2 changed files with 12 additions and 2 deletions

View file

@ -1,7 +1,15 @@
# Changelog
All notable changes to this project will be documented in this file.
Given the high speed of development in the first phase, changes are being reported only starting from v0.20.2.
Given the high speed of development in the first phase, changes are being
reported only starting from v0.20.2.
## [Unreleased]
### Added
- Added support for web hooks returning their hook method responses back to the
HTTP client.
## [0.23.4] - 2022-08-28

View file

@ -64,7 +64,9 @@ class WebhookEvent(Event):
get_redis().rpush(self.args['response_queue'], output)
def wait_response(self, timeout=None):
return get_redis().blpop(self.args['response_queue'], timeout=timeout)[1]
rs = get_redis().blpop(self.args['response_queue'], timeout=timeout)
if rs and len(rs) > 1:
return rs[1]
# vim:sw=4:ts=4:et: