fixed argument to constructor
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/storagehub-client-wrapper@176333 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
2572456fb3
commit
6f6e4ffc55
|
@ -449,7 +449,7 @@ public class StorageHubClientService {
|
|||
}else{
|
||||
streamDesc = shcClient.open(itemId).asFile().download(nodeIdsToExclude);
|
||||
}
|
||||
return new StreamDescriptor(streamDesc.getStream(), streamDesc.getFileName());
|
||||
return new StreamDescriptor(streamDesc.getStream(), streamDesc.getFileName(), streamDesc.getContentType());
|
||||
|
||||
}
|
||||
|
||||
|
@ -466,7 +466,7 @@ public class StorageHubClientService {
|
|||
|
||||
setContextProviders(scope, authorizationToken);
|
||||
StreamDescriptor streamDesc = shcClient.open(folderId).asFolder().download(nodeIdsToExclude);
|
||||
return new StreamDescriptor(streamDesc.getStream(), streamDesc.getFileName());
|
||||
return new StreamDescriptor(streamDesc.getStream(), streamDesc.getFileName(), streamDesc.getContentType());
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue