Skip to content

Commit 5b446f3

Browse files
authored
Remove robust-http-client (#10190)
2 parents dc14c6d + ae34b38 commit 5b446f3

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

bom/pom.xml

-5
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,6 @@ THE SOFTWARE.
287287
<artifactId>localizer</artifactId>
288288
<version>1.31</version>
289289
</dependency>
290-
<dependency>
291-
<groupId>org.jvnet.robust-http-client</groupId>
292-
<artifactId>robust-http-client</artifactId>
293-
<version>1.2</version>
294-
</dependency>
295290
<dependency>
296291
<groupId>org.jvnet.winp</groupId>
297292
<artifactId>winp</artifactId>

core/pom.xml

-4
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,6 @@ THE SOFTWARE.
325325
<groupId>org.jvnet.localizer</groupId>
326326
<artifactId>localizer</artifactId>
327327
</dependency>
328-
<dependency>
329-
<groupId>org.jvnet.robust-http-client</groupId>
330-
<artifactId>robust-http-client</artifactId>
331-
</dependency>
332328
<dependency>
333329
<groupId>org.jvnet.winp</groupId>
334330
<artifactId>winp</artifactId>

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

+2-3
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)