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

interface conversion: interface {} is map[string]interface {}, not url.Values #4

Open
llaoj opened this issue Apr 8, 2020 · 1 comment

Comments

@llaoj
Copy link

llaoj commented Apr 8, 2020

since I change the store to redis.
this code cannot work

    store, err := session.Start(nil, w, r)
    if err != nil {
        return
    }
    if r.Form == nil {
        r.ParseForm()
    }
    store.Set("RequestForm", r.Form)
    store.Save()

...

    store, err := session.Start(nil, w, r)
    if err != nil {
        return
    }
    form, ok := store.Get("RequestForm")
    if !ok {
        return
    }
    clientID := form.(url.Values).Get("client_id")

occur this error
interface conversion: interface {} is map[string]interface {}, not url.Values.

how can i fix this? thx

@DasJott
Copy link

DasJott commented Oct 5, 2022

Same here. Everything seems to be marshaled as map[string]interface{} and therefore does not preserve the original types.

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

No branches or pull requests

2 participants