Skip to content

Commit

Permalink
[Heartbeat] Fix tracking http url parsing error (#34702)
Browse files Browse the repository at this point in the history
* Fix tracking http url parsing error

* Add changelog
  • Loading branch information
emilioalvap authored and chrisberkhout committed Jun 1, 2023
1 parent 104db0a commit 62f44e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ https://github.com/elastic/beats/compare/v8.2.0\...main[Check the HEAD diff]

*Heartbeat*

- Fix panics when parsing dereferencing invalid parsed url. {pull}34702[34702]
- Fix broken zip URL monitors. NOTE: Zip URL Monitors will be removed in version 8.7 and replaced with project monitors. {pull}33723[33723]
- Fix bug where states.duration_ms was incorrect type. {pull}33563[33563]
- Fix handling of long UDP messages in UDP input. {issue}33836[33836] {pull}33837[33837]
Expand Down
2 changes: 1 addition & 1 deletion heartbeat/monitors/active/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func create(

js := make([]jobs.Job, len(config.Hosts))
for i, urlStr := range config.Hosts {
u, _ := url.Parse(urlStr)
u, err := url.Parse(urlStr)
if err != nil {
return plugin.Plugin{}, err
}
Expand Down

0 comments on commit 62f44e4

Please sign in to comment.