set a user-agent
Ted Unangst tedu@tedunangst.com
Sun, 28 Apr 2019 17:30:32 -0400
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -131,6 +131,7 @@ at = "application/jrd+json"
} req.Header.Set("Accept", at) req.Header.Set("Accept-Encoding", "gzip") + req.Header.Set("User-Agent", "honksnonk/5.0") resp, err := client.Do(req) if err != nil { return nil, err