Skip to content

Commit 9317bb4

Browse files
committed
fix: Keep None values for user_data in Request (apify#1707)
### Description - This PR fixes loss of `None` values in `user_data` during `Request` serialization ### Issues - Closes: apify#1706
1 parent fc017d9 commit 9317bb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crawlee/_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class Request(BaseModel):
217217
lambda instance: user_data_adapter.dump_python(
218218
instance,
219219
by_alias=True,
220-
exclude_none=True,
220+
exclude_none=False,
221221
exclude_unset=True,
222222
exclude_defaults=True,
223223
)

0 commit comments

Comments
 (0)