From e3d7792105bac0a34887e47be1bc35b77f374409 Mon Sep 17 00:00:00 2001 From: Erik Westrup Date: Fri, 24 Nov 2017 18:36:51 +0100 Subject: [PATCH] Always add ; separator in Info query Always append ; as separator between ID-part and criteria-part for info query URL part. Fixes #7 --- .../java/net/researchgate/restdsl/queries/ServiceQuery.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/restler-core/src/main/java/net/researchgate/restdsl/queries/ServiceQuery.java b/restler-core/src/main/java/net/researchgate/restdsl/queries/ServiceQuery.java index fdae48a..b5b9f59 100644 --- a/restler-core/src/main/java/net/researchgate/restdsl/queries/ServiceQuery.java +++ b/restler-core/src/main/java/net/researchgate/restdsl/queries/ServiceQuery.java @@ -289,8 +289,9 @@ public String toUrlPart() { if (ids != null && !ids.isEmpty()) { sb.append(Joiner.on(",").join(ids)); } else { - sb.append("-;"); + sb.append("-"); } + sb.append(';'); if (criteria != null) { for (String c : criteria.keySet()) { sb.append(c).append("=");