mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Fix deadlock in update-self
This commit is contained in:
@@ -40,7 +40,7 @@ func DownloadToWriter(url string, dest io.Writer, progress_callback ReportFunc)
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
return fmt.Errorf("The server responded with the HTTP error %d (%s)", resp.StatusCode, resp.Status)
|
||||
return fmt.Errorf("The server responded with the HTTP error: %s", resp.Status)
|
||||
}
|
||||
wc := write_counter{report: progress_callback}
|
||||
cl, err := strconv.Atoi(resp.Header.Get("Content-Length"))
|
||||
|
||||
Reference in New Issue
Block a user