Skip to content

Commit

Permalink
fix(cmd/influx): respect --skip-verify in influx query (#20578)
Browse files Browse the repository at this point in the history
  • Loading branch information
danxmoran committed Jan 25, 2021
1 parent ebd37c8 commit 3be8e49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Replacement `tsi1` indexes will be automatically generated on startup for shards
1. [20548](https://github.com/influxdata/influxdb/pull/20548): Prevent panic in `influxd upgrade` when V1 users exist and no V1 config is given.
1. [20565](https://github.com/influxdata/influxdb/pull/20565): Set correct Content-Type on v1 query responses.
1. [20565](https://github.com/influxdata/influxdb/pull/20565): Update V1 API spec to document all valid Accept headers and matching Content-Types.
1. [20578](https://github.com/influxdata/influxdb/pull/20578): Respect the --skip-verify flag when running `influx query`.

## v2.0.3 [2020-12-14]

Expand Down
3 changes: 2 additions & 1 deletion cmd/influx/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ func fluxQueryF(cmd *cobra.Command, args []string) error {
req.Header.Set("Authorization", "Token "+flags.config().Token)
req.Header.Set("Content-Type", "application/json")

resp, err := http.DefaultClient.Do(req)
client := ihttp.NewClient(u.Scheme, flags.skipVerify)
resp, err := client.Do(req)
if err != nil {
return err
}
Expand Down

0 comments on commit 3be8e49

Please sign in to comment.