Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Be more lenient on checksum upload error
Browse files Browse the repository at this point in the history
See gh-51
  • Loading branch information
philwebb committed Apr 11, 2019
1 parent 4604a6a commit 797b828
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

import org.springframework.core.io.Resource;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.RequestEntity;
import org.springframework.http.RequestEntity.BodyBuilder;
Expand Down Expand Up @@ -81,9 +80,6 @@ public void deploy(DeployableArtifact artifact, DeployOption... options) {
deployUsingChecksum(artifact);
}
catch (HttpClientErrorException ex) {
if (!ex.getStatusCode().equals(HttpStatus.NOT_FOUND)) {
throw ex;
}
deployUsingContent(artifact);
}
}
Expand Down

0 comments on commit 797b828

Please sign in to comment.