File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package aws
33import (
44 "fmt"
55 "log"
6+ "net/http"
67 "strings"
78
89 "github.com/hashicorp/go-multierror"
@@ -98,6 +99,7 @@ func (c *Config) Client() (interface{}, error) {
9899 Credentials : creds ,
99100 Region : aws .String (c .Region ),
100101 MaxRetries : aws .Int (c .MaxRetries ),
102+ HTTPClient : & http.Client {},
101103 }
102104
103105 log .Println ("[INFO] Initializing IAM Connection" )
@@ -123,6 +125,7 @@ func (c *Config) Client() (interface{}, error) {
123125 Credentials : creds ,
124126 Region : aws .String ("us-east-1" ),
125127 MaxRetries : aws .Int (c .MaxRetries ),
128+ HTTPClient : & http.Client {},
126129 }
127130
128131 log .Println ("[INFO] Initializing DynamoDB connection" )
Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ package dme
22
33import (
44 "fmt"
5- "github.com/soniah/dnsmadeeasy"
65 "log"
6+ "net/http"
7+
8+ "github.com/soniah/dnsmadeeasy"
79)
810
911// Config contains DNSMadeEasy provider settings
@@ -20,6 +22,8 @@ func (c *Config) Client() (*dnsmadeeasy.Client, error) {
2022 return nil , fmt .Errorf ("Error setting up client: %s" , err )
2123 }
2224
25+ client .HTTP = & http.Client {}
26+
2327 if c .UseSandbox {
2428 client .URL = dnsmadeeasy .SandboxURL
2529 }
Original file line number Diff line number Diff line change 55 "fmt"
66 "io"
77 "log"
8+ "net/http"
89 "os"
910 "strconv"
1011
@@ -75,6 +76,7 @@ func s3Factory(conf map[string]string) (Client, error) {
7576 awsConfig := & aws.Config {
7677 Credentials : credentialsProvider ,
7778 Region : aws .String (regionName ),
79+ HTTPClient : & http.Client {},
7880 }
7981 nativeClient := s3 .New (awsConfig )
8082
You can’t perform that action at this time.
0 commit comments