~bigbes/core-go

bf509aeeaa162557beee1a03fbdb7e8a863264e7 — Drew DeVault 1 year, 6 months ago aa1834b
client: add User-Agent to outgoing requests
1 files changed, 1 insertions(+), 0 deletions(-)

M client/graphql.go
M client/graphql.go => client/graphql.go +1 -0
@@ 133,6 133,7 @@ func Do(ctx context.Context, username string, svc string,
		return err
	}
	req.Header.Add("Content-Type", contentType)
	req.Header.Add("User-Agent", "SourceHut core-go (https://git.sr.ht/~sircmpwn/core-go)")
	auth := InternalAuth{
		Name:     username,
		ClientID: config.ServiceName(ctx),