We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c8785c commit e0fbb6aCopy full SHA for e0fbb6a
java/src/org/labkey/remoteapi/PostCommand.java
@@ -108,8 +108,8 @@ protected HttpUriRequest createRequest(URI uri)
108
109
if (null != json)
110
{
111
- if (!json.containsKey("apiVersion"))
112
- json.put("apiVersion", getRequiredVersion());
+ if (!json.containsKey(CommonParameters.apiVersion.name()) && getRequiredVersion() > 0)
+ json.put(CommonParameters.apiVersion.name(), getRequiredVersion());
113
114
request.setEntity(new StringEntity(json.toString(), ContentType.APPLICATION_JSON));
115
}
0 commit comments