Skip to content

Commit 3f8c8be

Browse files
author
Prasanna Rajaperumal
committed
Cast url.openConnection() to HttpURLConnection instead of HttpsURLConnection. Useful for enterprise githubs which does not have https set up.
1 parent cef8f74 commit 3f8c8be

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/org/kohsuke/github/Requester.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
import org.apache.commons.io.IOUtils;
2727

28-
import javax.net.ssl.HttpsURLConnection;
2928
import java.io.FileNotFoundException;
3029
import java.io.IOException;
3130
import java.io.InputStream;
@@ -294,7 +293,7 @@ private void findNextURL(HttpURLConnection uc) throws MalformedURLException {
294293

295294

296295
private HttpURLConnection setupConnection(URL url) throws IOException {
297-
HttpsURLConnection uc = (HttpsURLConnection) url.openConnection();
296+
HttpURLConnection uc = (HttpURLConnection) url.openConnection();
298297

299298
// if the authentication is needed but no credential is given, try it anyway (so that some calls
300299
// that do work with anonymous access in the reduced form should still work.)

0 commit comments

Comments
 (0)