mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 14:50:16 +00:00
make add_dict_to_cookiejar cookielib.CookieJar compatible
This commit is contained in:
+1
-3
@@ -331,9 +331,7 @@ def add_dict_to_cookiejar(cj, cookie_dict):
|
||||
:rtype: CookieJar
|
||||
"""
|
||||
|
||||
cj2 = cookiejar_from_dict(cookie_dict)
|
||||
cj.update(cj2)
|
||||
return cj
|
||||
return cookiejar_from_dict(cookie_dict, cj)
|
||||
|
||||
|
||||
def get_encodings_from_content(content):
|
||||
|
||||
Reference in New Issue
Block a user