mirror of https://github.com/zulip/zulip.git
b6f6f6db8d
slack_incoming webhook previously used has_request_variables to extract payload from HttpRequest object first, before trying to access HttpRequest.body again in view.py. This caused an error when one sends a request without payload - it is forbidden to read from request data stream twice. Instead of relying on has_request_variables, this PR extracts payload depending on content type in view.py directly to avoid reading request data stream twice. Fixes #19056. |
||
---|---|---|
.. | ||
fixtures | ||
__init__.py | ||
doc.md | ||
tests.py | ||
view.py |