mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 16:51:00 +00:00
Ignore 406 response for webfinger and nodeinfo (#356)
This commit is contained in:
parent
1768781fed
commit
f1fa4aa1e2
2 changed files with 2 additions and 2 deletions
|
@ -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}",
|
||||
|
|
Loading…
Reference in a new issue