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 cookie not being parsed on load. #1

Merged
merged 1 commit into from
Apr 19, 2015

Commits on Apr 19, 2015

  1. Fix cookie not being parsed on load.

    If you have to stringify your object before saving, and you add that,
    to the `_cookies` cache, then you'll return that on `load` after setting
    it with `save`.
    
    While if the value is already set, the script correctly parses the cookie
    values and what you load is returned as an object.
    
    This oneliner takes care of that for you.
    pixeleet committed Apr 19, 2015
    Configuration menu
    Copy the full SHA
    877e9a5 View commit details
    Browse the repository at this point in the history