Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
brianluisgomez committed May 17, 2024
1 parent b499db4 commit 7abf739
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main/java/com/bandwidth/sdk/api/MediaApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -677,10 +677,14 @@ public okhttp3.Call uploadMediaCall(String accountId, String mediaId, File body,
"video/webm",
"video/x-ms-wmv"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}

if (contentType == null) {
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
};


String[] localVarAuthNames = new String[] { "Basic" };
return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
Expand Down

0 comments on commit 7abf739

Please sign in to comment.