Skip to content

Commit ae34b38

Browse files
committed
Remove robust-http-client
1 parent 309e6bf commit ae34b38

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

bom/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,6 @@ THE SOFTWARE.
297297
<artifactId>localizer</artifactId>
298298
<version>1.31</version>
299299
</dependency>
300-
<dependency>
301-
<groupId>org.jvnet.robust-http-client</groupId>
302-
<artifactId>robust-http-client</artifactId>
303-
<version>1.2</version>
304-
</dependency>
305300
<dependency>
306301
<groupId>org.jvnet.winp</groupId>
307302
<artifactId>winp</artifactId>

core/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,6 @@ THE SOFTWARE.
333333
<groupId>org.jvnet.localizer</groupId>
334334
<artifactId>localizer</artifactId>
335335
</dependency>
336-
<dependency>
337-
<groupId>org.jvnet.robust-http-client</groupId>
338-
<artifactId>robust-http-client</artifactId>
339-
</dependency>
340336
<dependency>
341337
<groupId>org.jvnet.winp</groupId>
342338
<artifactId>winp</artifactId>

core/src/main/java/hudson/ProxyConfiguration.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
import jenkins.util.JenkinsJVM;
7171
import jenkins.util.SystemProperties;
7272
import org.jenkinsci.Symbol;
73-
import org.jvnet.robust_http_client.RetryableHttpStream;
7473
import org.kohsuke.accmod.Restricted;
7574
import org.kohsuke.accmod.restrictions.NoExternalUse;
7675
import org.kohsuke.stapler.DataBoundConstructor;
@@ -346,10 +345,10 @@ public static URLConnection open(URL url) throws IOException {
346345
public static InputStream getInputStream(URL url) throws IOException {
347346
final ProxyConfiguration p = get();
348347
if (p == null)
349-
return new RetryableHttpStream(url);
348+
return ((HttpURLConnection) url.openConnection()).getInputStream();
350349

351350
Proxy proxy = p.createProxy(url.getHost());
352-
InputStream is = new RetryableHttpStream(url, proxy);
351+
InputStream is = ((HttpURLConnection) url.openConnection(proxy)).getInputStream();
353352
if (p.getUserName() != null) {
354353
// Add an authenticator which provides the credentials for proxy authentication
355354
Authenticator.setDefault(p.authenticator);

0 commit comments

Comments
 (0)