diff options
Diffstat (limited to 'canvas.go')
| -rw-r--r-- | canvas.go | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -23,8 +23,10 @@ func initialize() { | |||
| 23 | 23 | ||
| 24 | client = http.Client{ | 24 | client = http.Client{ |
| 25 | CheckRedirect: func(req *http.Request, via []*http.Request) error { | 25 | CheckRedirect: func(req *http.Request, via []*http.Request) error { |
| 26 | fmt.Println("Redirected to:", req.URL) | 26 | if verbose { |
| 27 | fmt.Println(req.Cookies()) | 27 | fmt.Println("Redirected to:", req.URL) |
| 28 | fmt.Println(req.Cookies()) | ||
| 29 | } | ||
| 28 | return nil | 30 | return nil |
| 29 | }, | 31 | }, |
| 30 | Jar: jar, | 32 | Jar: jar, |
