mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Add context to storage backends and wire it through a lot of places (#3817)
This commit is contained in:
committed by
Jeff Mitchell
parent
2864fbd697
commit
8142b42d95
@@ -1,6 +1,7 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"net/http"
|
||||
@@ -22,7 +23,7 @@ func TestHandler_cors(t *testing.T) {
|
||||
|
||||
// Enable CORS and allow from any origin for testing.
|
||||
corsConfig := core.CORSConfig()
|
||||
err := corsConfig.Enable([]string{addr}, nil)
|
||||
err := corsConfig.Enable(context.Background(), []string{addr}, nil)
|
||||
if err != nil {
|
||||
t.Fatalf("Error enabling CORS: %s", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user