1
0
Fork 0
mirror of https://github.com/imjasonh/staticmaps synced 2026-07-18 06:47:26 +00:00

Merge branch 'master' of gist.github.com:/cbfa5a05023549bcf565

This commit is contained in:
Jason Hall 2014-10-09 16:08:31 -04:00
commit 8cd7c7a64b
3 changed files with 85 additions and 1 deletions

View file

@ -23,7 +23,9 @@ func NewWorkClient(clientID, signature string) Client {
}
func (c Client) do(url string) (*http.Response, error) {
cl := &http.Client{Transport: c.Transport}
cl := &http.Client{Transport: &backoff{
Transport: &c.Transport,
}}
req, err := http.NewRequest("GET", url, nil)
if err != nil {
return nil, err