mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 08:49:40 -05:00
Merge pull request #80 from htliang128/master
Update of Socks Proxy adding headers
This commit is contained in:
@@ -105,6 +105,7 @@ public class HttpProxyClient extends HttpClient {
|
||||
socksConnection.setSSLSocketFactory(sc.getSocketFactory());
|
||||
socksConnection.setConnectTimeout(httpClientSettings.getTimeout().toMillisPart());
|
||||
socksConnection.setReadTimeout(httpClientSettings.getTimeout().toMillisPart());
|
||||
httpClientSettings.getHeaders().forEach(socksConnection::setRequestProperty);
|
||||
|
||||
byte[] body = socksConnection.getInputStream().readAllBytes();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user