PlayerTexture: force https

This commit is contained in:
Bixilon 2023-02-04 19:03:08 +01:00
parent 274173349e
commit 67ae3e1609
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -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()
}