Added 'Accept' HTTP header in list
This commit is contained in:
parent
a207cb0043
commit
00f3a8d718
|
@ -122,6 +122,7 @@ abstract class GCatClient {
|
|||
gxhttpStringRequest.path(p);
|
||||
}
|
||||
gxhttpStringRequest.queryParams(queryParams);
|
||||
gxhttpStringRequest.header(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON);
|
||||
HttpURLConnection httpURLConnection = gxhttpStringRequest.get();
|
||||
return parseHttpURLConnection(httpURLConnection);
|
||||
}catch (WebApplicationException e) {
|
||||
|
|
|
@ -164,7 +164,7 @@ public class ItemTest extends ContextTest {
|
|||
// @Ignore
|
||||
@Test
|
||||
public void listOnVOTest() throws Exception {
|
||||
ContextTest.setContextByName(VO);
|
||||
ContextTest.setContextByName(VRE);
|
||||
|
||||
Item item = new Item();
|
||||
String itemsString = item.list(10, 0, "devvre");
|
||||
|
|
Loading…
Reference in New Issue