Skip to content

Commit

Permalink
Change monitor widget to make GET requests
Browse files Browse the repository at this point in the history
  • Loading branch information
svilenmarkov committed Apr 29, 2024
1 parent 748ad1f commit 189b889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/widget/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (widget *Monitor) Update(ctx context.Context) {
requests := make([]*http.Request, len(widget.Sites))

for i := range widget.Sites {
request, err := http.NewRequest("HEAD", widget.Sites[i].Url, nil)
request, err := http.NewRequest("GET", widget.Sites[i].Url, nil)

if err != nil {
message := fmt.Errorf("failed to create http request for %s: %s", widget.Sites[i].Url, err)
Expand Down

0 comments on commit 189b889

Please sign in to comment.