Skip to content

Commit

Permalink
Fix URL string interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
fermayo committed Sep 16, 2021
1 parent 4d4bcbb commit 607a96b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func makeShellyUpdateRequest(hostname string, update bool) (*shellyUpdateStatusR
url += "?update=1"
}

body, err := makeGetRequest(url)
body, err := makeGetRequest(fmt.Sprintf(url, hostname))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 607a96b

Please sign in to comment.