// callAuthenticator calls the given URL as authenticator.
callAuthenticator calls the given URL as authenticator.
// callAuthenticator calls the given URL as authenticator .
func (auth Authenticator) callAuthenticator(signURL string) error {
	client := auth.HTTPClientFactory()
	resp, err := client.Get(signURL)
	if err != nil {
		return err
	}
	respBuffer := bytes.NewBuffer(nil)
	io.CopyN(respBuffer, resp.Body, 1024*1024) 
	respBytes := respBuffer.Bytes()
	p := bytes.Index(respBytes, []byte(successString))
	if p < 0 {
		return ErrSigned
	}
	return nil
}
func ( auth Authenticator ) callAuthenticator ( signURL string ) error { client := auth . HTTPClientFactory ( ) resp , err := client . Get ( signURL ) if err != nil { return err } respBuffer := bytes . NewBuffer ( nil ) io . CopyN ( respBuffer , resp . Body , 1024 * 1024 ) respBytes := respBuffer . Bytes ( ) p := bytes . Index ( respBytes , [ ] byte ( successString ) ) if p < 0 { return ErrSigned } return nil }
callAuthenticator calls the given URL as authenticator.
callAuthenticator calls the given URL as authenticator .
// errors dont matter, content does.