> + @Override
> + public Authorization apply(Credentials creds) {
> + return b2Api.getAuthorizationApi().authorizeAccount();
> + }
> + }));
> + }
> +
> + @Override
> + public HttpRequest filter(HttpRequest request) throws HttpException {
> + utils.logRequest(signatureLog, request, ">>");
> + Credentials creds = this.creds.get();
> + Authorization auth = cache.getUnchecked(creds);
> +
> + // Replace fixed URL with API URL, except for unit tests tests
> + URI endpoint = request.getEndpoint();
> + if (!endpoint.getHost().equals("localhost")) {
Re-reading this, I agree with you and will remove it.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/270/files/8bb355e1b286b2bbf77fd8d3cb75cd2d1aa6bc69#r64510699