mirror of https://github.com/apache/jclouds.git
Fix bug with nova client and Diablo where client sends Accept header that Diablo rejects as unparseable
This commit is contained in:
parent
a25c2616cc
commit
393c99561d
|
@ -88,6 +88,7 @@ public interface NovaAsyncClient {
|
|||
* @see NovaClient#deleteServer
|
||||
*/
|
||||
@DELETE
|
||||
@Consumes
|
||||
@ExceptionParser(ReturnFalseOnNotFoundOr404.class)
|
||||
@Path("/servers/{id}")
|
||||
ListenableFuture<Boolean> deleteServer(@PathParam("id") int id);
|
||||
|
|
|
@ -416,7 +416,7 @@ public class NovaAsyncClientTest extends RestClientTest<NovaAsyncClient> {
|
|||
HttpRequest request = processor.createRequest(method, 2);
|
||||
|
||||
assertRequestLineEquals(request, "DELETE http://endpoint/vapiversion/servers/2 HTTP/1.1");
|
||||
assertNonPayloadHeadersEqual(request, "");
|
||||
assertNonPayloadHeadersEqual(request, "Accept: */*\n");
|
||||
assertPayloadEquals(request, null, null, false);
|
||||
|
||||
assertResponseParserClassEquals(method, request, ReturnTrueIf2xx.class);
|
||||
|
|
Loading…
Reference in New Issue