Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix: use request.stream instead of request.content (#11591)

shamoona1026f03dbae
diff --git a/src/documents/workflows/webhooks.py b/src/documents/workflows/webhooks.py
index 49fb09f6d..a0256873a 100644
--- a/src/documents/workflows/webhooks.py
+++ b/src/documents/workflows/webhooks.py
@@ -62,7 +62,7 @@ class WebhookTransport(httpx.HTTPTransport):
method=request.method,
url=new_url,
headers=new_headers,
- content=request.content,
+ content=request.stream,
extensions=request.extensions,
)
request.extensions["sni_hostname"] = hostname