Skip to content
Snippets Groups Projects
Commit dcdba415 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Added https protocol on download endpoint

parent e1938dfd
No related branches found
No related tags found
No related merge requests found
Pipeline #3340 passed
...@@ -53,9 +53,12 @@ public class DownloadController { ...@@ -53,9 +53,12 @@ public class DownloadController {
transfer.setDirection("pullFromVoSpace"); transfer.setDirection("pullFromVoSpace");
transfer.setTarget("vos://" + authority + urlEncodePath(path)); transfer.setTarget("vos://" + authority + urlEncodePath(path));
Protocol protocol = new Protocol(); Protocol httpProtocol = new Protocol();
protocol.setUri("ivo://ivoa.net/vospace/core#httpget"); httpProtocol.setUri("ivo://ivoa.net/vospace/core#httpget");
transfer.getProtocols().add(protocol);
Protocol httpsProtocol = new Protocol();
httpsProtocol.setUri("ivo://ivoa.net/vospace/core#httpsget");
transfer.getProtocols().add(httpsProtocol);
String url = client.getFileServiceEndpoint(transfer); String url = client.getFileServiceEndpoint(transfer);
HttpHeaders headers = new HttpHeaders(); HttpHeaders headers = new HttpHeaders();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment