mirror of
https://github.com/glanceapp/glance.git
synced 2024-11-25 01:44:47 +01:00
Change monitor widget to make GET requests
This commit is contained in:
parent
748ad1ff8d
commit
189b8895b0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user