diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-04 03:24:17 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-04 03:24:17 +0000 |
commit | 31ff72e2c533e005b7013aa80b820d046c0ba02e (patch) | |
tree | 2fd2f2d643eef5e46c25f6fb9339af0b477594a6 /registry/registry.go | |
parent | f21f496c3c7067bd13dc9e2771a5561dd5c28f5d (diff) | |
download | communique-31ff72e2c533e005b7013aa80b820d046c0ba02e.tar.gz |
ask for json back
Diffstat (limited to 'registry/registry.go')
-rw-r--r-- | registry/registry.go | 6 |
1 files changed, 5 insertions, 1 deletions
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 } |