1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-03-17 20:28:06 +02:00

store/cloudflare: fix dropped error (#930)

This commit is contained in:
Lars Lehtonen 2019-11-09 07:18:51 -08:00 committed by Asim Aslam
parent a9e8fc6039
commit 5aa28dfb0d

View File

@ -252,6 +252,10 @@ func (w *workersKV) request(ctx context.Context, method, path string, body inter
}
req, err := http.NewRequestWithContext(ctx, method, apiBaseURL+path, reqBody)
if err != nil {
return nil, nil, 0, errors.Wrap(err, "error creating new request")
}
for key, value := range headers {
req.Header[key] = value
}