Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
This reverts commit 29ba11e to fix alibaba#3992
  • Loading branch information
KomachiSion authored and WesleyOne committed Oct 20, 2020
1 parent c57799c commit 201d16e
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 201d16e

Please sign in to comment.