Skip to content

Commit

Permalink
Exclude tmp parameters in HTTP GET method
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Li committed Oct 14, 2021
1 parent 9be4e2d commit 506da9a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ protected String appendParameters(String uri, JsonObject parameters) {
try {
URIBuilder builder = new URIBuilder(new URI(uri));
for (Map.Entry<String, JsonElement> entry : parameters.entrySet()) {
builder.addParameter(entry.getKey(), entry.getValue().getAsString());
if (!entry.getKey().matches("tmp.*")) {
builder.addParameter(entry.getKey(), entry.getValue().getAsString());
}
}
return builder.build().toString();
} catch (Exception e) {
Expand Down

0 comments on commit 506da9a

Please sign in to comment.