Skip to content
Permalink
Browse files

[JENKINS-51402] setFollowRedirects is not necessary

  • Loading branch information
carlossg committed May 22, 2018
1 parent 83fa829 commit 478e2e7778db19c48ef0a19742a72ed45a418c4c
@@ -354,8 +354,6 @@ public Void invoke(File f, VirtualChannel channel) throws IOException, Interrupt
* Upload a file to a URL
*/
private static void uploadFile(Path f, URL url) throws IOException {
// AWS will redirect to the bucket region if different
HttpURLConnection.setFollowRedirects(true);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setDoOutput(true);
connection.setRequestMethod("PUT");

0 comments on commit 478e2e7

Please sign in to comment.
You can’t perform that action at this time.