mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-16 02:45:13 -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
|
||||
|
||||
open class PlayerTexture(
|
||||
val url: URL,
|
||||
url: URL,
|
||||
) {
|
||||
@JsonIgnore
|
||||
var data: ByteArray? = null
|
||||
private set
|
||||
|
||||
val url = if (url.protocol == "http") URL("https://" + url.toString().removePrefix("http://")) else url
|
||||
|
||||
init {
|
||||
url.checkWeb()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user