mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Fix: Switches data to content to upload raw bytes/text content (#9293)
This commit is contained in:
@@ -632,7 +632,7 @@ def send_webhook(
|
||||
else:
|
||||
httpx.post(
|
||||
url,
|
||||
data=data,
|
||||
content=data,
|
||||
files=files,
|
||||
headers=headers,
|
||||
).raise_for_status()
|
||||
|
@@ -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,
|
||||
)
|
||||
|
Reference in New Issue
Block a user