From db5511127dc7fe143a688e32f648803df45f0326 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 4 Jun 2019 16:00:19 -0400 Subject: [PATCH] Update HTTP workflow action to new requests API Signed-off-by: Roberto Rosario --- HISTORY.rst | 1 + mayan/apps/document_states/workflow_actions.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 7ded44d6fc..b3bd465097 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -277,6 +277,7 @@ clarity. * Add note about the new preparestatic command. * Add no-result template for workflow instance detail view. +* Update HTTP workflow action to new requests API. 3.1.11 (2019-04-XX) =================== diff --git a/mayan/apps/document_states/workflow_actions.py b/mayan/apps/document_states/workflow_actions.py index 998143b1aa..0646cb25e0 100644 --- a/mayan/apps/document_states/workflow_actions.py +++ b/mayan/apps/document_states/workflow_actions.py @@ -166,4 +166,4 @@ class HTTPPostAction(WorkflowAction): logger.debug('payload json result: %s', payload) - requests.post(url=url, data=payload, timeout=self.form_data['timeout']) + requests.post(url=url, json=payload, timeout=self.form_data['timeout'])