Use the provided method in dockerImageSource.makeRequest instead of hard-coding GET

This commit is contained in:
Miloslav Trmač
2016-05-02 19:19:51 +02:00
parent 60fbdd3988
commit 7bee2da169

View File

@@ -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
}