aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-client/src/main/java/org/sonar/wsclient/services/PropertyQuery.java
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-ws-client/src/main/java/org/sonar/wsclient/services/PropertyQuery.java')
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/services/PropertyQuery.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/PropertyQuery.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/PropertyQuery.java
index 5e2abc4547f..3fee1d82af9 100644
--- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/PropertyQuery.java
+++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/PropertyQuery.java
@@ -46,10 +46,10 @@ public class PropertyQuery extends Query<Property> {
@Override
public String getUrl() {
StringBuilder url = new StringBuilder(BASE_URL);
+ url.append('?');
if (key != null) {
- url.append("/").append(encode(key));
+ url.append("id=").append(encode(key)).append("&");
}
- url.append('?');
appendUrlParameter(url, "resource", resourceKeyOrId);
return url.toString();
}