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:
commit
8cd7c7a64b
3 changed files with 85 additions and 1 deletions
4
maps.go
4
maps.go
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue