|
@@ -105,7 +105,7 @@ func TestNewWithProxy(t *testing.T) {
|
|
proxyFunc := splunkLogger.transport.Proxy
|
|
proxyFunc := splunkLogger.transport.Proxy
|
|
assert.Assert(t, proxyFunc != nil)
|
|
assert.Assert(t, proxyFunc != nil)
|
|
|
|
|
|
- req, err := http.NewRequest("GET", splunkURL, nil)
|
|
|
|
|
|
+ req, err := http.NewRequest(http.MethodGet, splunkURL, nil)
|
|
assert.NilError(t, err)
|
|
assert.NilError(t, err)
|
|
|
|
|
|
proxyURL, err := proxyFunc(req)
|
|
proxyURL, err := proxyFunc(req)
|