Skip to content

Commit ff63baf

Browse files
committed
Merge pull request hub4j#82 from prazanna/master
Cast url.openConnection() to HttpURLConnection instead of HttpsURLConnec...
2 parents cef8f74 + 3f8c8be commit ff63baf

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)