diff --git a/src/documents/signals/handlers.py b/src/documents/signals/handlers.py index 1fd34dd81..7241924e4 100644 --- a/src/documents/signals/handlers.py +++ b/src/documents/signals/handlers.py @@ -632,7 +632,7 @@ def send_webhook( else: httpx.post( url, - data=data, + content=data, files=files, headers=headers, ).raise_for_status() diff --git a/src/documents/tests/test_workflows.py b/src/documents/tests/test_workflows.py index b9205d4bb..94dcb7689 100644 --- a/src/documents/tests/test_workflows.py +++ b/src/documents/tests/test_workflows.py @@ -2603,7 +2603,7 @@ class TestWorkflows( mock_post.assert_called_once_with( "http://paperless-ngx.com", - data="Test message", + content="Test message", headers={}, files=None, )