Use environment DialContext and Listen everywhere
This commit is contained in:
parent
f19619ef9f
commit
b0d3c686ba
11 changed files with 64 additions and 30 deletions
|
|
@ -6,7 +6,6 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
"mime/multipart"
|
||||
"net"
|
||||
"net/http"
|
||||
|
||||
"github.com/FAU-CDI/wisski-distillery/pkg/logging"
|
||||
|
|
@ -64,10 +63,8 @@ func (ts Triplestore) OpenRaw(method, url string, body interface{}, bodyName str
|
|||
// create the request object
|
||||
client := &http.Client{
|
||||
Transport: &http.Transport{
|
||||
Dial: ts.Environment.Dial,
|
||||
DialTLS: func(network, addr string) (net.Conn, error) {
|
||||
return nil, errors.New("not implemented")
|
||||
},
|
||||
DialContext: ts.Environment.DialContext,
|
||||
DisableKeepAlives: true,
|
||||
},
|
||||
}
|
||||
req, err := http.NewRequest(method, ts.BaseURL+url, reader)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue