aboutsummaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
Diffstat (limited to 'registry')
-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
}