Skip to content

Commit

Permalink
Revert "for #3621 (#3668)" (#3999)
Browse files Browse the repository at this point in the history
This reverts commit 29ba11e to fix #3992
  • Loading branch information
KomachiSion authored Oct 16, 2020
1 parent 7527d76 commit 164ad3a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -127,13 +125,13 @@ public boolean login(List<String> servers) {
* @param server server address
* @return true if login successfully
*/
public boolean login(String server) throws UnsupportedEncodingException {
public boolean login(String server) {

if (StringUtils.isNotBlank(username)) {
Map<String, String> params = new HashMap<String, String>(2);
Map<String, String> bodyMap = new HashMap<String, String>(2);
params.put("username", username);
bodyMap.put("password", URLEncoder.encode(password, "utf-8"));
bodyMap.put("password", password);
String url = "http://" + server + contextPath + LOGIN_URL;

if (server.contains(Constants.HTTP_PREFIX)) {
Expand Down

0 comments on commit 164ad3a

Please sign in to comment.