mirror of https://github.com/perkeep/perkeep.git
pkg/client: init http client and gate when noExtConfig
Fixes #1043 Change-Id: I7a7760de546c009de0da71f45f8cfa108f2585ac
This commit is contained in:
parent
f75c16a1f8
commit
26925d41a7
|
@ -186,6 +186,7 @@ func New(opts ...ClientOption) (*Client, error) {
|
|||
c.sameOrigin = true
|
||||
}
|
||||
if c.noExtConfig {
|
||||
c.setDefaultHTTPClient()
|
||||
return c, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue