mirror of
https://github.com/containers/skopeo.git
synced 2025-09-19 00:46:17 +00:00
Use the provided method in dockerImageSource.makeRequest instead of hard-coding GET
This commit is contained in:
@@ -241,7 +241,7 @@ func (s *dockerImageSource) makeRequest(method, url string, headers map[string]s
|
||||
}
|
||||
|
||||
url = fmt.Sprintf(baseURL, s.scheme, s.registry) + url
|
||||
req, err := http.NewRequest("GET", url, nil)
|
||||
req, err := http.NewRequest(method, url, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user