Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cmd/influx): respect --skip-verify in influx query #20578

Merged
merged 2 commits into from
Jan 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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