Skip to content

Commit

Permalink
Include elastic-api-version header in Kibana requests (#1526)
Browse files Browse the repository at this point in the history
Installing zips requires elastic-api-version header starting on Kibana 8.12.
  • Loading branch information
jsoriano committed Nov 2, 2023
1 parent 4102d51 commit a5b1356
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/kibana/packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func (c *Client) InstallZipPackage(zipFile string) ([]packages.Asset, error) {
return nil, err
}
req.Header.Set("Content-Type", "application/zip")
req.Header.Add("elastic-api-version", "2023-10-31")

statusCode, respBody, err := c.doRequest(req)
if err != nil {
Expand Down

0 comments on commit a5b1356

Please sign in to comment.