fix query param

This commit is contained in:
Niko Storni 2022-07-29 05:40:50 +02:00
parent 5693529216
commit 0177dd4ce0

View file

@ -64,7 +64,7 @@ func (n *HttpStore) Get(hash string) (stream.Blob, shared.BlobTrace, error) {
start := time.Now()
url := n.upstream + "/blob?hash=" + hash
if n.edgeToken != "" {
url += "&token=" + n.edgeToken
url += "&edge_token=" + n.edgeToken
}
req, err := http.NewRequest("GET", url, nil)