// default http Client should not follow redirects and return the most recent response.
default http Client should not follow redirects and return the most recent response.
// default http Client should not follow redirects and return the most recent response .
func defaultHTTPClient() *http.Client {
	return &http.Client{
		CheckRedirect: func(req *http.Request, via []*http.Request) error {
			return http.ErrUseLastResponse
		},
		Timeout: time.Second * 10,
	}
}
func defaultHTTPClient ( ) * http . Client { return & http . Client { CheckRedirect : func ( req * http . Request , via [ ] * http . Request ) error { return http . ErrUseLastResponse } , Timeout : time . Second * 10 , } }
default http Client should not follow redirects and return the most recent response.
default http Client should not follow redirects and return the most recent response .