fix build

This commit is contained in:
helo 2023-09-11 22:56:36 +07:00
parent 7dabff1da9
commit 2dd73dd012
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ suspend fun extractInstantUHD(url: String): String? {
.build()
return app.post(
"$host/api", requestBody = body, headers = mapOf(
"x-token" to "${url.toUri().host}"
"x-token" to URI(url).host
), referer = "$host/"
).parsedSafe<Map<String, String>>()?.get("url")
}