mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-16 10:55:01 -04:00
PlayerTexture: force https
This commit is contained in:
parent
274173349e
commit
67ae3e1609
@ -26,12 +26,14 @@ import de.bixilon.minosoft.util.logging.LogMessageType
|
|||||||
import java.net.URL
|
import java.net.URL
|
||||||
|
|
||||||
open class PlayerTexture(
|
open class PlayerTexture(
|
||||||
val url: URL,
|
url: URL,
|
||||||
) {
|
) {
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
var data: ByteArray? = null
|
var data: ByteArray? = null
|
||||||
private set
|
private set
|
||||||
|
|
||||||
|
val url = if (url.protocol == "http") URL("https://" + url.toString().removePrefix("http://")) else url
|
||||||
|
|
||||||
init {
|
init {
|
||||||
url.checkWeb()
|
url.checkWeb()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user