Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always share attributes with underlying session instance
When an existing session instance was passed into create_scraper, interesting attributes were copied if they were truthy. However, this excluded copying attributes of mutable data types that were falsey at the time. For example, if the cookie jar of the original session was empty, then cloudscraper wouldn't use the same jar as the original session and cookies would get out of sync between the two. Now all interesting attributes are synced given they aren't None.
- Loading branch information