store/cloudflare: fix dropped error (#930)
This commit is contained in:
parent
a9e8fc6039
commit
5aa28dfb0d
@ -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)
|
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 {
|
for key, value := range headers {
|
||||||
req.Header[key] = value
|
req.Header[key] = value
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user