kopia lustrzana https://github.com/jointakahe/takahe
Ignore 406 response for webfinger and nodeinfo (#356)
rodzic
1768781fed
commit
f1fa4aa1e2
|
@ -166,7 +166,7 @@ class Domain(StatorModel):
|
|||
if (
|
||||
response
|
||||
and response.status_code < 500
|
||||
and response.status_code not in [401, 403, 404, 410]
|
||||
and response.status_code not in [401, 403, 404, 406, 410]
|
||||
):
|
||||
raise ValueError(
|
||||
f"Client error fetching nodeinfo: domain={self.domain}, code={response.status_code}",
|
||||
|
|
|
@ -658,7 +658,7 @@ class Identity(StatorModel):
|
|||
if (
|
||||
response
|
||||
and response.status_code < 500
|
||||
and response.status_code not in [401, 403, 404, 410]
|
||||
and response.status_code not in [401, 403, 404, 406, 410]
|
||||
):
|
||||
raise ValueError(
|
||||
f"Client error fetching webfinger: {response.status_code}",
|
||||
|
|
Ładowanie…
Reference in New Issue