Skip to content

Keep the original request URL when extracting cookies - #279

Open
gyanu2507 wants to merge 1 commit into
Pylons:mainfrom
gyanu2507:cookie-path-info
Open

Keep the original request URL when extracting cookies#279
gyanu2507 wants to merge 1 commit into
Pylons:mainfrom
gyanu2507:cookie-path-info

Conversation

@gyanu2507

Copy link
Copy Markdown

Django rewrites PATH_INFO in the WSGI environ. We were building a fresh cookiejar request after the app returned, so cookielib tried to decode that path a second time.

Snapshot the URL up front and reuse that adapter when reading Set-Cookie.

Fixes #274.

Django rewrites PATH_INFO in the WSGI environ. Building a second
cookiejar request after get_response made cookielib try to decode that
path again.

Fixes Pylons#274.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Attempt at double decoding of PATH_INFO when using Django and CookieJar

1 participant