Skip to content

Commit

Permalink
Allow missing contentType (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslav-orel-jfrog authored Jan 4, 2022
1 parent 1ee48f3 commit 0e317ee
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ public ArtifactoryResponse restCall(ArtifactoryRequest artifactoryRequest) throw
HttpRequestBase httpRequest;

String requestPath = "/" + artifactoryRequest.getApiUrl();
ContentType contentType = Util.getContentType(artifactoryRequest.getRequestType());

ContentType contentType = null;
if (artifactoryRequest.getRequestType() != null) {
contentType = Util.getContentType(artifactoryRequest.getRequestType());
}

String queryPath = "";
if (!artifactoryRequest.getQueryParams().isEmpty()) {
Expand Down

0 comments on commit 0e317ee

Please sign in to comment.