mirror of https://github.com/usbharu/Hideout.git
feat: acceptを追加
This commit is contained in:
parent
7a20b715c3
commit
9db38fc4e0
|
@ -33,7 +33,9 @@ class WebFingerService(
|
|||
|
||||
override suspend fun fetchUserModel(url: String): Person? {
|
||||
return try {
|
||||
httpClient.get(url).body<Person>()
|
||||
httpClient.get(url) {
|
||||
header("Accept", "application/activity+json")
|
||||
}.body<Person>()
|
||||
} catch (e: ResponseException) {
|
||||
if (e.response.status == HttpStatusCode.NotFound) {
|
||||
return null
|
||||
|
|
Loading…
Reference in New Issue