git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/branches/data-access/storagehub-webapp/1.0@173861 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
191b7cdac3
commit
070a1744dc
|
@ -405,7 +405,7 @@ public class ItemsManager {
|
||||||
|
|
||||||
return Response
|
return Response
|
||||||
.ok(so)
|
.ok(so)
|
||||||
.header("content-disposition","attachment; filename = \""+fileName+"\"")
|
.header("content-disposition","attachment; filename = "+fileName)
|
||||||
.header("Content-Length", size)
|
.header("Content-Length", size)
|
||||||
.header("Content-Type", mimeType)
|
.header("Content-Type", mimeType)
|
||||||
.build();
|
.build();
|
||||||
|
@ -500,7 +500,7 @@ public class ItemsManager {
|
||||||
|
|
||||||
response = Response
|
response = Response
|
||||||
.ok(so)
|
.ok(so)
|
||||||
.header("content-disposition","attachment; filename = \""+fileItem.getName()+"\"")
|
.header("content-disposition","attachment; filename = "+fileItem.getName())
|
||||||
.header("Content-Length", fileItem.getContent().getSize())
|
.header("Content-Length", fileItem.getContent().getSize())
|
||||||
.header("Content-Type", fileItem.getContent().getMimeType())
|
.header("Content-Type", fileItem.getContent().getMimeType())
|
||||||
.build();
|
.build();
|
||||||
|
@ -530,7 +530,7 @@ public class ItemsManager {
|
||||||
|
|
||||||
response = Response
|
response = Response
|
||||||
.ok(so)
|
.ok(so)
|
||||||
.header("content-disposition","attachment; filename = \""+item.getTitle()+".zip\"")
|
.header("content-disposition","attachment; filename = "+item.getTitle()+".zip")
|
||||||
.header("Content-Type", "application/zip")
|
.header("Content-Type", "application/zip")
|
||||||
.header("Content-Length", -1l)
|
.header("Content-Length", -1l)
|
||||||
.build();
|
.build();
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
</context-param>
|
</context-param>
|
||||||
<context-param>
|
<context-param>
|
||||||
<param-name>resolver-basepath</param-name>
|
<param-name>resolver-basepath</param-name>
|
||||||
<param-value>https://data1-d.d4science.net/shub</param-value>
|
<param-value>https://data-d.d4science.net/shub</param-value>
|
||||||
</context-param>
|
</context-param>
|
||||||
<servlet>
|
<servlet>
|
||||||
<servlet-name>org.gcube.data.access.storagehub.StorageHub</servlet-name>
|
<servlet-name>org.gcube.data.access.storagehub.StorageHub</servlet-name>
|
||||||
|
|
Loading…
Reference in New Issue