Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 691772 Details for
Bug 906924
[patch] Backport support correct cookie handling
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Handle cookies correctly
python-requests-cookie-handling.patch (text/plain), 1.33 KB, created by
Ralph Bean
on 2013-02-01 22:31:47 UTC
(
hide
)
Description:
Handle cookies correctly
Filename:
MIME Type:
Creator:
Ralph Bean
Created:
2013-02-01 22:31:47 UTC
Size:
1.33 KB
patch
obsolete
>From 2cecc4bc828fc1754cc26f279ec3ff5cd65cb8f7 Mon Sep 17 00:00:00 2001 >From: Ralph Bean <rbean@redhat.com> >Date: Thu, 31 Jan 2013 21:38:58 -0500 >Subject: [PATCH] cookie handling > >--- > requests/models.py | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/requests/models.py b/requests/models.py >index 2193c6e..0a12237 100644 >--- a/requests/models.py >+++ b/requests/models.py >@@ -17,7 +17,7 @@ from .structures import CaseInsensitiveDict > from .status_codes import codes > > from .auth import HTTPBasicAuth, HTTPProxyAuth >-from .cookies import cookiejar_from_dict, extract_cookies_to_jar, get_cookie_header >+from .cookies import cookiejar_from_dict, extract_cookies_to_jar, get_cookie_header, RequestsCookieJar > from .packages.urllib3.exceptions import MaxRetryError, LocationParseError > from .packages.urllib3.exceptions import TimeoutError > from .packages.urllib3.exceptions import SSLError as _SSLError >@@ -207,7 +207,8 @@ class Request(object): > extract_cookies_to_jar(self.cookies, self, resp) > > # Save cookies in Response. >- response.cookies = self.cookies >+ response.cookies = RequestsCookieJar() >+ extract_cookies_to_jar(response.cookies, self, resp) > > # Save cookies in Session. > for cookie in self.cookies: >-- >1.8.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 906924
: 691772 |
695229
|
695230