Skip to content

Commit

Permalink
0004351: check null on POST values
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed May 12, 2020
1 parent 9b0763c commit 5eb4887
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -239,7 +239,9 @@ protected void applyRequestProperties() throws IOException {
sb.append("&");
}
sb.append(requestProperty.getKey()).append("=");
sb.append(URLEncoder.encode(requestProperty.getValue(), IoConstants.ENCODING));
if (requestProperty.getValue() != null && !requestProperty.getValue().equals("")) {
sb.append(URLEncoder.encode(requestProperty.getValue(), IoConstants.ENCODING));
}
}

try (OutputStream os = connection.getOutputStream()) {
Expand Down

0 comments on commit 5eb4887

Please sign in to comment.