We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7daa39a commit 6ec5ac5Copy full SHA for 6ec5ac5
1 file changed
elasticsearch/config.go
@@ -7,6 +7,7 @@ import (
7
"os"
8
"strconv"
9
"strings"
10
+ "net/http"
11
12
"github.com/elastic/go-elasticsearch/v8"
13
"github.com/hasura/ndc-sdk-go/credentials"
@@ -132,7 +133,9 @@ func GetDefaultResultSize() int {
132
133
// This function should be used to setup the config with properties
134
// that will be common across all configs (credentials provieder based configs or env based configs).
135
func getBaseConfig() (*elasticsearch.Config, error) {
- esConfig := elasticsearch.Config{}
136
+ esConfig := elasticsearch.Config{
137
+ Header: http.Header{},
138
+ }
139
140
// Read the address
141
address := os.Getenv(elasticsearchUrlEnvVar)
0 commit comments