Ensure query params defined on a connection are available on the socket

This commit is contained in:
Tobie Morgan Hitchcock 2021-04-17 15:02:03 +01:00
parent e9849a5a39
commit 1390c56501

View file

@ -114,8 +114,9 @@ func (s *socket) ctx() (ctx context.Context) {
ctx = context.Background()
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(auth.Data, varKeyAuth)
vars.Set(auth.Scope, varKeyScope)