Skip to content

Commit 3614728

Browse files
author
Balazs Horanyi
committed
avoid getting 414's that occur with large data loads getting passed as params in the uri
1 parent b4ca4f1 commit 3614728

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎stream/personalization.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ def post(self, resource, **params):
4242
"""
4343

4444
data = params["data"] or None
45+
if data:
46+
# avoid 414's by passing entire data chunk in uri
47+
del params["data"]
4548

4649
response = self.client.post(
4750
resource,

0 commit comments

Comments
 (0)