From 31ff72e2c533e005b7013aa80b820d046c0ba02e Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Tue, 3 Jan 2023 22:24:17 -0500 Subject: ask for json back --- registry/registry.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'registry') diff --git a/registry/registry.go b/registry/registry.go index 9cb3219..cfc148a 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -170,7 +170,11 @@ func (r *Registry) Inbox(name string, req *http.Request) error { keyId := verifier.KeyId() logger.With("keyId", keyId).Debugf("fetching") - resp, err := http.Get(keyId) + req, err = http.NewRequest("GET", keyId, nil) + req.Header.Set("Content-Accept", "application/json; charset=UTF-8") + + client := &http.Client{} + resp, err := client.Do(req) if err != nil { return err } -- cgit v1.2.3