Skip to content
Myr

Merge pull request #1745 from nonm/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Small fix broken cookie parse

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 947375e, cfbbd15 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/cookies.py+1 added-1 removed
276 unmodified lines
277 """Deletes a cookie given a name. Wraps cookielib.CookieJar's remove_cookie_by_name()."""278 remove_cookie_by_name(self, name)279280 def set_cookie(self, cookie, *args, **kwargs):281 if cookie.value.startswith('"') and cookie.value.endswith('"'):281 if hasattr(cookie.value, 'startswith') and cookie.value.startswith('"') and cookie.value.endswith('"'):282 cookie.value = cookie.value.replace('\\"', '')283 return super(RequestsCookieJar, self).set_cookie(cookie, *args, **kwargs)284285 def update(self, other):
138 unmodified lines