删除多余代码

master
qi_liang 4 years ago
parent b0dc2aaea0
commit 3ac84735e7
  1. 3
      src/main/java/com/lq/code/util/HttpUtil.java

@ -32,9 +32,6 @@ public class HttpUtil {
//获取所有响应头字段 //获取所有响应头字段
Map<String,List<String>> map=connection.getHeaderFields(); Map<String,List<String>> map=connection.getHeaderFields();
//遍历所有的响应头字段 //遍历所有的响应头字段
for (String key:map.keySet()){
System.out.println(key+"-------------->"+map.get(key));
}
in=new BufferedReader(new InputStreamReader(connection.getInputStream())); in=new BufferedReader(new InputStreamReader(connection.getInputStream()));
String line; String line;
while ((line=in.readLine())!=null){ while ((line=in.readLine())!=null){

Loading…
Cancel
Save