[skip ci] chore: Update Kitsu URL

This commit is contained in:
Sadwhy 2024-08-12 13:07:34 +06:00 committed by GitHub
parent a7cef9323e
commit ebb61d94dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,16 +20,16 @@ object Kitsu {
"Accept" to "application/json", "Accept" to "application/json",
"Accept-Encoding" to "gzip, deflate", "Accept-Encoding" to "gzip, deflate",
"Accept-Language" to "en-US,en;q=0.5", "Accept-Language" to "en-US,en;q=0.5",
"Host" to "kitsu.io", "Host" to "kitsu.app",
"Connection" to "keep-alive", "Connection" to "keep-alive",
"Origin" to "https://kitsu.io", "Origin" to "https://kitsu.app",
"Sec-Fetch-Dest" to "empty", "Sec-Fetch-Dest" to "empty",
"Sec-Fetch-Mode" to "cors", "Sec-Fetch-Mode" to "cors",
"Sec-Fetch-Site" to "cross-site", "Sec-Fetch-Site" to "cross-site",
) )
val response = tryWithSuspend { val response = tryWithSuspend {
val res = client.post( val res = client.post(
"https://kitsu.io/api/graphql", "https://kitsu.app/api/graphql",
headers, headers,
data = mapOf("query" to query) data = mapOf("query" to query)
) )