mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
Merge branch 'master' of ssh://github.com/micro/go-micro
This commit is contained in:
commit
f2b4c07a00
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user