Fix nil error in utilitiestest
@@ -47,10 +47,10 @@ func Client() *http.Client {
// func Curl is used to make requests against a server
func Curl(method, uri string, requestBody *strings.Reader) (*http.Response, error) {
request, err := http.NewRequest(method, uri, requestBody)
- request.SetBasicAuth(epinioUser, epinioPassword)
if err != nil {
return nil, err
}
+ request.SetBasicAuth(epinioUser, epinioPassword)
return Client().Do(request)
}
