Skip to content

Commit

Permalink
cli: fix CLI console not respecting offline mode configuration
Browse files Browse the repository at this point in the history
fixes #8482

PR-URL: hasura/graphql-engine-mono#7257
GitOrigin-RevId: a398de5d4fccc670b9f6e25d3cdd92efb24a23f8
  • Loading branch information
scriptonist authored and hasura-bot committed Dec 14, 2022
1 parent 62708ca commit acf5ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func (c *ServerConfig) GetHasuraInternalServerConfig(client *httpc.Client) error
url := c.getConfigEndpoint()
ctx, cancelFunc := context.WithTimeout(context.Background(), 30*time.Second)
defer cancelFunc()
req, err := http.NewRequest("GET", url, nil)
req, err := client.NewRequest("GET", url, nil)
if err != nil {
return errors.E(op, fmt.Errorf("error fetching config from server: %w", err))
}
Expand Down

0 comments on commit acf5ea4

Please sign in to comment.