This commit is contained in:
Lucio Lelii 2018-10-29 16:37:42 +00:00
parent 191b7cdac3
commit 070a1744dc
2 changed files with 4 additions and 4 deletions

View File

@ -405,7 +405,7 @@ public class ItemsManager {
return Response
.ok(so)
.header("content-disposition","attachment; filename = \""+fileName+"\"")
.header("content-disposition","attachment; filename = "+fileName)
.header("Content-Length", size)
.header("Content-Type", mimeType)
.build();
@ -500,7 +500,7 @@ public class ItemsManager {
response = Response
.ok(so)
.header("content-disposition","attachment; filename = \""+fileItem.getName()+"\"")
.header("content-disposition","attachment; filename = "+fileItem.getName())
.header("Content-Length", fileItem.getContent().getSize())
.header("Content-Type", fileItem.getContent().getMimeType())
.build();
@ -530,7 +530,7 @@ public class ItemsManager {
response = Response
.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-Length", -1l)
.build();

View File

@ -10,7 +10,7 @@
</context-param>
<context-param>
<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>
<servlet>
<servlet-name>org.gcube.data.access.storagehub.StorageHub</servlet-name>