You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by sc...@apache.org on 2014/02/04 21:46:05 UTC
svn commit: r1564478 -
/wookie/trunk/wookie-server/src/test/java/org/apache/wookie/tests/functional/ApiKeyControllerTest.java
Author: scottbw
Date: Tue Feb 4 20:46:05 2014
New Revision: 1564478
URL: http://svn.apache.org/r1564478
Log:
Changed header name from "accepts" to "Accept" for content negotiation to JSON
Modified:
wookie/trunk/wookie-server/src/test/java/org/apache/wookie/tests/functional/ApiKeyControllerTest.java
Modified: wookie/trunk/wookie-server/src/test/java/org/apache/wookie/tests/functional/ApiKeyControllerTest.java
URL: http://svn.apache.org/viewvc/wookie/trunk/wookie-server/src/test/java/org/apache/wookie/tests/functional/ApiKeyControllerTest.java?rev=1564478&r1=1564477&r2=1564478&view=diff
==============================================================================
--- wookie/trunk/wookie-server/src/test/java/org/apache/wookie/tests/functional/ApiKeyControllerTest.java (original)
+++ wookie/trunk/wookie-server/src/test/java/org/apache/wookie/tests/functional/ApiKeyControllerTest.java Tue Feb 4 20:46:05 2014
@@ -90,7 +90,7 @@ public class ApiKeyControllerTest extend
//
// Set the accepts header to JSON
//
- get.addRequestHeader("accepts", "application/json");
+ get.addRequestHeader("Accept", "application/json");
setAuthenticationCredentials(client);
client.executeMethod(get);
int code = get.getStatusCode();
@@ -107,7 +107,7 @@ public class ApiKeyControllerTest extend
// Try again using ?format param overriding the accepts header
//
get = new GetMethod(APIKEY_SERVICE_LOCATION_VALID+"?format=json");
- get.addRequestHeader("accepts", "text/xml");
+ get.addRequestHeader("Accept", "text/xml");
setAuthenticationCredentials(client);
client.executeMethod(get);
code = get.getStatusCode();