Skip to content

Commit

Permalink
patched scope
Browse files Browse the repository at this point in the history
  • Loading branch information
adranwit committed Aug 8, 2024
1 parent d1cb2df commit f902cf0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions service/session/stater.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ func (s *Session) Into(ctx context.Context, dest interface{}, opts ...hstate.Opt
if hOptions.HttpRequest() != nil || hOptions.Form() != nil {
options.kindLocator.RemoveLocators(state.KindForm, state.KindRequest, state.KindQuery)
}
if hOptions.Constants() != nil {
options.kindLocator.RemoveLocators(state.KindConst)
}
if err = s.SetState(ctx, stateType.Parameters, aState, options); err != nil {
return err
}
Expand Down

0 comments on commit f902cf0

Please sign in to comment.