jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chaithanya Ganta <notificati...@github.com>
Subject Re: [jclouds/jclouds] Remove Expect header for requests with empty body (#1120)
Date Tue, 18 Jul 2017 14:18:46 GMT
ChaithanyaGK commented on this pull request.



> @@ -73,7 +73,7 @@ public void testZeroLengthPutHasContentLengthHeader() throws IOException,
Interr
       RecordedRequest request = server.takeRequest();
       assertEquals(request.getRequestLine(), "PUT /bucket/object HTTP/1.1");
       assertEquals(request.getHeaders(CONTENT_LENGTH), ImmutableList.of("0"));
-      assertEquals(request.getHeaders(EXPECT), ImmutableList.of("100-continue"));
+      assert request.getHeaders(EXPECT).isEmpty();

Done

-- 
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/pull/1120#discussion_r127988452
Mime
View raw message