pkg/client: init http client and gate when noExtConfig

Fixes #1043

Change-Id: I7a7760de546c009de0da71f45f8cfa108f2585ac
This commit is contained in:
mpl 2018-01-25 01:08:58 +01:00
parent f75c16a1f8
commit 26925d41a7
1 changed files with 1 additions and 0 deletions

View File

@ -186,6 +186,7 @@ func New(opts ...ClientOption) (*Client, error) {
c.sameOrigin = true
}
if c.noExtConfig {
c.setDefaultHTTPClient()
return c, nil
}