summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2013-07-02 08:34:18 (EDT)
committerTomasz Zarna2013-07-02 08:34:18 (EDT)
commit6da5ab1916cb5fcf3d0879bbb9cc976625e411b6 (patch)
tree4d1e72236a494c06402c1fdb611f2507b862b071
parent120521b8c5c839449a80fe56c39fc771e294abd6 (diff)
downloadorg.eclipse.mylyn.reviews-6da5ab1916cb5fcf3d0879bbb9cc976625e411b6.zip
org.eclipse.mylyn.reviews-6da5ab1916cb5fcf3d0879bbb9cc976625e411b6.tar.gz
org.eclipse.mylyn.reviews-6da5ab1916cb5fcf3d0879bbb9cc976625e411b6.tar.bz2
395059: support Gerrit 2.6, remove format=JSON query parameterrefs/changes/81/14181/1
Remove format=JSON query parameter since it's deprecated in 2.6. It's purpose in 2.5 was to obtain pretty formatting in the response. Parsing the compact format is more efficient, thus preferable. Bug: 395059 Change-Id: Id2601f3fd4ceb0a49c104bb3a7091b1a0d24fd09 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=395059 Signed-off-by: Tomasz Zarna <tomasz.zarna@tasktop.com>
-rw-r--r--org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient.java b/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient.java
index 1e0e713..47f6059 100644
--- a/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient.java
+++ b/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient.java
@@ -755,7 +755,7 @@ public class GerritClient extends ReviewsClient {
@Override
public HttpMethodBase createMethod() throws IOException {
GetMethod method = new GetMethod(client.getUrl()
- + "/changes/?format=JSON&q=" + URLEncoder.encode(queryString, "UTF-8")); //$NON-NLS-1$ //$NON-NLS-2$
+ + "/changes/?q=" + URLEncoder.encode(queryString, "UTF-8")); //$NON-NLS-1$ //$NON-NLS-2$
method.setRequestHeader("Accept", "application/json"); //$NON-NLS-1$//$NON-NLS-2$
return method;
}