Change monitor widget to make GET requests

This commit is contained in:
Svilen Markov 2024-04-29 17:04:39 +01:00
parent 748ad1ff8d
commit 189b8895b0

View File

@ -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)