mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-22 01:56:44 +00:00
GODT-1833: Updage go.mod/sum.
This commit is contained in:
@ -178,7 +178,7 @@ func (p *proxyProvider) canReach(url string) bool {
|
||||
dialer := NewPinningTLSDialer(p.cfg, NewBasicTLSDialer(p.cfg))
|
||||
|
||||
pinger := resty.New().
|
||||
SetHostURL(url).
|
||||
SetBaseURL(url).
|
||||
SetTimeout(p.canReachTimeout).
|
||||
SetTransport(CreateTransportWithDialer(dialer))
|
||||
|
||||
|
||||
@ -61,7 +61,7 @@ func newManager(cfg Config) *manager {
|
||||
m.proxyDialer = proxyDialer
|
||||
m.rc.SetTransport(transport)
|
||||
|
||||
m.rc.SetHostURL(cfg.HostURL)
|
||||
m.rc.SetBaseURL(cfg.HostURL)
|
||||
m.rc.OnBeforeRequest(m.setHeaderValues)
|
||||
|
||||
// Any HTTP status code higher than 399 with JSON inside (and proper header)
|
||||
|
||||
Reference in New Issue
Block a user