Added 'Accept' HTTP header in list

This commit is contained in:
Luca Frosini 2023-02-28 15:45:27 +01:00
parent a207cb0043
commit 00f3a8d718
2 changed files with 2 additions and 1 deletions

View File

@ -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) {

View File

@ -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");