Browse Source

http_ntlm: fix panic due to unintialized embedded field (#3120)

master
Mohammed Al Sahaf 5 years ago
committed by GitHub
parent
commit
fb5168d3b4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      modules/caddyhttp/reverseproxy/ntlm.go

6
modules/caddyhttp/reverseproxy/ntlm.go

@ -61,7 +61,11 @@ type NTLMTransport struct {
func (NTLMTransport) CaddyModule() caddy.ModuleInfo {
return caddy.ModuleInfo{
ID: "http.reverse_proxy.transport.http_ntlm",
New: func() caddy.Module { return new(NTLMTransport) },
New: func() caddy.Module {
m := new(NTLMTransport)
m.HTTPTransport = new(HTTPTransport)
return m
},
}
}

Loading…
Cancel
Save