all repos — honk @ c8936bd6d98a5c46e4e313e9978e2f5d9c2ca462

my fork of honk

change finger accept type to yet another mime
Ted Unangst tedu@tedunangst.com
Mon, 15 Apr 2019 10:27:36 -0400
commit

c8936bd6d98a5c46e4e313e9978e2f5d9c2ca462

parent

e9f403ede51a92ec14b409ddc4e7063e0a299c7a

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M activity.goactivity.go

@@ -119,7 +119,11 @@ req, err := http.NewRequest("GET", url, nil)

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 {