change finger accept type to yet another mime
This commit is contained in:
parent
7b12715d1e
commit
1fb1523f54
|
@ -119,7 +119,11 @@ func GetJunk(url string) (map[string]interface{}, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header.Set("Accept", theonetruename)
|
||||
at := theonetruename
|
||||
if strings.Contains(url, ".well-known/webfinger?resource") {
|
||||
at = "application/jrd+json"
|
||||
}
|
||||
req.Header.Set("Accept", at)
|
||||
req.Header.Set("Accept-Encoding", "gzip")
|
||||
resp, err := client.Do(req)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue