zulip/zerver/webhooks/slack_incoming
Christopher Chong b6f6f6db8d slack_incoming: Process request payload directly in view.py.
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.
2022-04-28 14:45:38 -07:00
..
fixtures slack_incoming: Handle explicit None text payload in webhook. 2021-07-15 09:37:39 -07:00
__init__.py
doc.md
tests.py slack_incoming: Process request payload directly in view.py. 2022-04-28 14:45:38 -07:00
view.py slack_incoming: Process request payload directly in view.py. 2022-04-28 14:45:38 -07:00