aboutsummaryrefslogtreecommitdiff
path: root/registry/registry.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-04 03:24:17 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-04 03:24:17 +0000
commit31ff72e2c533e005b7013aa80b820d046c0ba02e (patch)
tree2fd2f2d643eef5e46c25f6fb9339af0b477594a6 /registry/registry.go
parentf21f496c3c7067bd13dc9e2771a5561dd5c28f5d (diff)
downloadcommunique-31ff72e2c533e005b7013aa80b820d046c0ba02e.tar.gz
ask for json back
Diffstat (limited to 'registry/registry.go')
-rw-r--r--registry/registry.go6
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
}