Commit 56cd2d18 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

Introduced https:// urls for files to load!

parent 66552916
Pipeline #506706 passed with stage
in 11 seconds
......@@ -173,7 +173,7 @@ public abstract class TReader extends TProcessBasic {
iFilename = (String)getParameter("file");
if ((iFilename != null)&&(!(iFilename.equals("_stdin_")))) {
if (iFilename.startsWith("http://")) {
if ( iFilename.startsWith("http://") || iFilename.startsWith("https://") ) {
URL url = new URL(iFilename);
URLConnection urlConnect = url.openConnection();
InputStream inStream = urlConnect.getInputStream();
......
......@@ -148,7 +148,7 @@ public abstract class TTransformation extends TProcessBasic {
long xslLastModified=0 ;
String systemID="";
if( fileName != null ){
if( fileName.startsWith("http://") ) {
if( fileName.startsWith("http://") || fileName.startsWith("https://") ) {
URL url = new URL(fileName);
URLConnection urlConnect = url.openConnection();
xslLastModified=urlConnect.getLastModified();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment