-
What happened?
ctx := context.WithValue(r.Context(), “CtxKey”, &CtxVal{
Cookie: r.Header.Get("Cookie"),
CsrfToken: r.Header.Get("CsrfToken"),
})
r = r.WithContext(ctx)
next.ServeHTTP(w, r)
What did you expect?get right context value Minimal graphql.schema and models to reproduce-- versions
|
Beta Was this translation helpful? Give feedback.
Answered by
wyaow
Mar 31, 2022
Replies: 2 comments
-
This can be closed, it's no problem, thank you. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wyaow
-
@wyaow Can you share the solution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This can be closed, it's no problem, thank you.