Skip to content

Commit

Permalink
[JENKINS-51402] setFollowRedirects is not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossg committed May 22, 2018
1 parent 83fa829 commit 478e2e7
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -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");
Expand Down

0 comments on commit 478e2e7

Please sign in to comment.