Fixed addition of http protocol
This commit is contained in:
parent
692bd33bd3
commit
450ca0af17
1 changed files with 3 additions and 0 deletions
|
|
@ -45,6 +45,9 @@ public class UeBehaviourFileDownload extends UeBehaviour {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getFileUrl() {
|
protected String getFileUrl() {
|
||||||
|
if(!url.startsWith("http://") && !url.startsWith("https://")
|
||||||
|
&& !url.startsWith("ftp://"))
|
||||||
|
url = "http://"+url;
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue