nacx commented on this pull request.


>        assertEquals(request.getHeader("X-Auth-Token"), X_AUTHORIZATION_TOKEN);
       return request;
    }
 
    protected RecordedRequest assertSent(MockWebServer server, String method, 
String path, String json)
          throws InterruptedException {
       RecordedRequest request = assertSent(server, method, path);
-      assertEquals(request.getHeader("Content-Type"), "application/json");
+      assertEquals(request.getHeader("Accept"), "application/json; version=" + 
ctx.getMetadata().get("apiVersion"));

This is already checked in the method called in the line above. This one is 
intended to verify requests with a body and thus it checks they have the right 
content-type header.

-- 
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/343#pullrequestreview-16695953

Reply via email to