diff --git a/component/resource/vehicle.go b/component/resource/vehicle.go index 1ae1b662..2f4bfbc8 100644 --- a/component/resource/vehicle.go +++ b/component/resource/vehicle.go @@ -57,7 +57,7 @@ func (h *HTTPVehicle) Read() ([]byte, error) { return nil, err } defer resp.Body.Close() - if resp.StatusCode < 200 && resp.StatusCode > 299 { + if resp.StatusCode < 200 || resp.StatusCode > 299 { return nil, errors.New(resp.Status) } buf, err := io.ReadAll(resp.Body)