diff --git a/libvirt/volume_image.go b/libvirt/volume_image.go index 34259476a..0cf48b13e 100644 --- a/libvirt/volume_image.go +++ b/libvirt/volume_image.go @@ -137,7 +137,7 @@ func (i *httpImage) IsQCOW2() (bool, error) { } defer response.Body.Close() - if response.StatusCode != http.StatusPartialContent { + if response.StatusCode != http.StatusPartialContent || response.StatusCode != http.StatusOK { return false, fmt.Errorf( "can't retrieve partial header of resource to determine file type: %s - %s", i.url.String(),