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.path(p);
|
||||||
}
|
}
|
||||||
gxhttpStringRequest.queryParams(queryParams);
|
gxhttpStringRequest.queryParams(queryParams);
|
||||||
|
gxhttpStringRequest.header(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON);
|
||||||
HttpURLConnection httpURLConnection = gxhttpStringRequest.get();
|
HttpURLConnection httpURLConnection = gxhttpStringRequest.get();
|
||||||
return parseHttpURLConnection(httpURLConnection);
|
return parseHttpURLConnection(httpURLConnection);
|
||||||
}catch (WebApplicationException e) {
|
}catch (WebApplicationException e) {
|
||||||
|
|
|
@ -164,7 +164,7 @@ public class ItemTest extends ContextTest {
|
||||||
// @Ignore
|
// @Ignore
|
||||||
@Test
|
@Test
|
||||||
public void listOnVOTest() throws Exception {
|
public void listOnVOTest() throws Exception {
|
||||||
ContextTest.setContextByName(VO);
|
ContextTest.setContextByName(VRE);
|
||||||
|
|
||||||
Item item = new Item();
|
Item item = new Item();
|
||||||
String itemsString = item.list(10, 0, "devvre");
|
String itemsString = item.list(10, 0, "devvre");
|
||||||
|
|
Loading…
Reference in New Issue