projects
/
platform
/
upstream
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
947375e
)
Small fix broken cookie parse
author
nonm
<shemooneed+gh@gmail.com>
Mon, 18 Nov 2013 21:32:59 +0000
(13:32 -0800)
committer
nonm
<shemooneed+gh@gmail.com>
Mon, 18 Nov 2013 21:32:59 +0000
(13:32 -0800)
requests/cookies.py
patch
|
blob
|
history
diff --git
a/requests/cookies.py
b/requests/cookies.py
index
12245fc
..
a4140ad
100644
(file)
--- a/
requests/cookies.py
+++ b/
requests/cookies.py
@@
-278,7
+278,7
@@
class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping):
remove_cookie_by_name(self, name)
def set_cookie(self, cookie, *args, **kwargs):
- if cookie.value.startswith('"') and cookie.value.endswith('"'):
+ if
hasattr(cookie.value, 'startswith') and
cookie.value.startswith('"') and cookie.value.endswith('"'):
cookie.value = cookie.value.replace('\\"', '')
return super(RequestsCookieJar, self).set_cookie(cookie, *args, **kwargs)