Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to sanic save #63

Merged
merged 1 commit into from
May 16, 2020
Merged

Fix to sanic save #63

merged 1 commit into from
May 16, 2020

Conversation

Paladiamors
Copy link
Contributor

Looks like cookies are missing from request. I have tested this locally and this seems to work with the demo code and addresses the issue I have raised.

#62

@ashleysommer
Copy link

@Paladiamors
I don't believe this is a problem with Cookies.

sanic_session is trying to use the deprecated request arbitrary attribute mechanism, which was finally removed in Sanic 20.3.

Your fix should use the new request.ctx mechanism that was introduced in sanic 19.9.

@Paladiamors
Copy link
Contributor Author

@ashleysommer Thanks for the comment. I've switched over to using the request.ctx mechanism and updated my pull request

@ashleysommer
Copy link

thanks @Paladiamors
Unfortunately I can't review or test this PR for you, I'm not a sanic_session dev. You'll need to wait for one of the sanic_session developers to visit.

@xen xen merged commit 6cba702 into ahopkins:master May 16, 2020
@xen
Copy link
Collaborator

xen commented May 18, 2020

Thank you for your contribution.

I have released new version based on your fixes https://pypi.org/project/sanic-session/0.7.0/

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.

None yet

3 participants