mirror of https://github.com/usbharu/Hideout.git
feat: acceptを追加
This commit is contained in:
parent
e97a3e9e96
commit
5320915f7f
|
@ -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