Skip to content

Commit

Permalink
fix session settings (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaneur2020 authored Nov 6, 2023
1 parent 3022f63 commit 68da274
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion restful.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,11 @@ func (c *APIClient) applySessionConfig(response *QueryResponse) {
c.role = response.Session.Role
}
if response.Session.Settings != nil {
newSessionSettings := map[string]string{}
for k, v := range response.Session.Settings {
c.sessionSettings[k] = v
newSessionSettings[k] = v
}
c.sessionSettings = newSessionSettings
}
}

Expand Down

0 comments on commit 68da274

Please sign in to comment.