From 16e87c39f2777f437396b95487f4ff734614f4cb Mon Sep 17 00:00:00 2001 From: "adrian.f.cole" Date: Mon, 20 Jul 2009 15:28:14 +0000 Subject: [PATCH] Issue 75: fixed Range header on tests git-svn-id: http://jclouds.googlecode.com/svn/trunk@1822 3d8758e0-26b5-11de-8745-db77d3ebf521 --- core/src/test/java/org/jclouds/http/BaseJettyTest.java | 2 +- core/src/test/java/org/jclouds/http/IntegrationTestClient.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/test/java/org/jclouds/http/BaseJettyTest.java b/core/src/test/java/org/jclouds/http/BaseJettyTest.java index d76f76058b..57680d5428 100644 --- a/core/src/test/java/org/jclouds/http/BaseJettyTest.java +++ b/core/src/test/java/org/jclouds/http/BaseJettyTest.java @@ -93,7 +93,7 @@ public abstract class BaseJettyTest { } else { response.sendError(500, "no content"); } - } else if (request.getHeader("Content-Range") != null) { + } else if (request.getHeader("Range") != null) { response.sendError(404, "no content"); } else if (request.getHeader("test") != null) { response.setContentType("text/plain"); diff --git a/core/src/test/java/org/jclouds/http/IntegrationTestClient.java b/core/src/test/java/org/jclouds/http/IntegrationTestClient.java index 1cb4e733f6..bdc26e4a8a 100644 --- a/core/src/test/java/org/jclouds/http/IntegrationTestClient.java +++ b/core/src/test/java/org/jclouds/http/IntegrationTestClient.java @@ -80,7 +80,7 @@ public interface IntegrationTestClient { @GET @Path("objects/{id}") @ExceptionParser(FooOnException.class) - String synchException(@PathParam("id") String id, @HeaderParam("Content-Range") String header); + String synchException(@PathParam("id") String id, @HeaderParam("Range") String header); @PUT @Path("objects/{id}")