func (r *ProtocolLXD) do(req *http.Request) (*http.Response, error) {
	if r.bakeryClient != nil {
		r.addMacaroonHeaders(req)
		return r.bakeryClient.Do(req)
	}

	return r.http.Do(req)
}
func (r *ProtocolLXD) do(req *http.Request) (*http.Response, error) {
	if r.bakeryClient != nil {
		r.addMacaroonHeaders(req)
		return r.bakeryClient.Do(req)
	}

	return r.http.Do(req)
}
func ( r * ProtocolLXD ) do ( req * http . Request ) ( * http . Response , error ) { if r . bakeryClient != nil { r . addMacaroonHeaders ( req ) return r . bakeryClient . Do ( req ) } return r . http . Do ( req ) }
// Do performs a Request, using macaroon authentication if set.
Do performs a Request using macaroon authentication if set .