add accept header to webfinger resolution (#4255)

Co-authored-by: Saul Moonves <shitposterclub@gmail.com>
This commit is contained in:
Moon
2025-03-24 15:46:22 -07:00
committed by GitHub
co-authored by Saul Moonves
parent 5f3fc2c06c
commit 31908babab
+7 -1
View File
@@ -44,7 +44,13 @@ func GetWebfingerLinks(account string) ([]map[string]interface{}, error) {
},
}
response, err := client.Get(requestURL.String())
req, err := http.NewRequest("GET", requestURL.String(), nil)
if err != nil {
return nil, err
}
req.Header.Set("Accept", "application/json")
response, err := client.Do(req)
if err != nil {
return nil, err
}