> +
> +   @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")) {
> +         endpoint = URI.create(auth.apiUrl() + endpoint.getPath() + 
> (endpoint.getQuery() == null ? "" : "?" + endpoint.getQuery()));
> +      }
> +
> +      request = request.toBuilder()
> +            .endpoint(endpoint)
> +            // TODO: squirrel away accountId in bogus header so 
> ReplacePayloadAccountId can use it

B2 requires the accountId in the JSON payload of requests but we don't want to 
include it in API calls.  Can I more cleanly pass this information to 
`ReplacePayloadAccountId`?

---
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/08f67d68c03760ce134ccf217c3b1ee4487ac318#r64118365

Reply via email to