We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b406c9f commit 92f34cfCopy full SHA for 92f34cf
proxy/proxy.go
@@ -40,6 +40,9 @@ type defaultHeaderTransport struct {
40
// from the defaultHeaderTransport to the request before
41
// delegating the actual round-trip to the original transport.
42
func (t *defaultHeaderTransport) RoundTrip(req *http.Request) (*http.Response, error) {
43
+ if t.origin == nil {
44
+ return nil, fmt.Errorf("origin RoundTripper is nil")
45
+ }
46
for key, values := range t.header {
47
for _, value := range values {
48
req.Header.Add(key, value)
0 commit comments