mirror of
https://github.com/SphericalKat/medium.rip.git
synced 2025-12-18 07:25:58 +00:00
Update medium_client.go
This commit is contained in:
parent
2965aeb592
commit
93f30a5a9a
@ -48,10 +48,10 @@ func PostData(postId string) (*entities.MediumResponse, error) {
|
|||||||
Transport: &http.Transport{
|
Transport: &http.Transport{
|
||||||
Proxy: http.ProxyURL(proxyURL),
|
Proxy: http.ProxyURL(proxyURL),
|
||||||
TLSClientConfig: &tls.Config{
|
TLSClientConfig: &tls.Config{
|
||||||
InsecureSkipVerify: true, // Skip TLS verification
|
InsecureSkipVerify: true, // Skip TLS verification },
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
log.Printf("Using proxy: %s", config.Conf.Proxy)
|
log.Printf("Using proxy: %s", config.Conf.Proxy)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
client := &http.Client{}
|
client := &http.Client{}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user