Ensure query params defined on a connection are available on the socket
This commit is contained in:
parent
e9849a5a39
commit
1390c56501
1 changed files with 2 additions and 1 deletions
|
@ -114,8 +114,9 @@ func (s *socket) ctx() (ctx context.Context) {
|
||||||
ctx = context.Background()
|
ctx = context.Background()
|
||||||
|
|
||||||
auth := s.fibre.Get(ctxKeyAuth).(*cnf.Auth)
|
auth := s.fibre.Get(ctxKeyAuth).(*cnf.Auth)
|
||||||
|
sess := s.fibre.Get(ctxKeyVars).(map[string]interface{})
|
||||||
|
|
||||||
vars := data.New()
|
vars := data.Consume(sess)
|
||||||
vars.Set(ENV, varKeyEnv)
|
vars.Set(ENV, varKeyEnv)
|
||||||
vars.Set(auth.Data, varKeyAuth)
|
vars.Set(auth.Data, varKeyAuth)
|
||||||
vars.Set(auth.Scope, varKeyScope)
|
vars.Set(auth.Scope, varKeyScope)
|
||||||
|
|
Loading…
Reference in a new issue