Minor breaking change
The response.cookies
object now contains only cookies from current request. If you are using the following patterns and hit a redirect, you will need a session.
import curl_cffi
r = curl_cffi.get("https://httpbin.org/redirect")
# ❌ Cookie from previous redirect may be lost.
do_something(r.cookies)
s = curl_cffi.Session()
r = s.get("https://httpbin.org/redirect")
# ✅ Use a session instead, to retrive all cookies in the session
do_something(s.cookies)
What's Changed
- Allow using string for setting http version by @lexiforest in #566
- Only include cookies in current request in response.cookies by @lexiforest in #572
- Fallback to latin-1 for redirected url in Location header by @lexiforest in #575
- Add toggle for firefox specific extensions by @lexiforest in #576
- Option to disable cookie store (2) by @novitae in #489
Full Changelog: v0.11.1...v0.11.2